Skip to content

ci: add Dependabot for GitHub Actions and Swift deps#32

Merged
BlackHole1 merged 1 commit into
mainfrom
ci/dependabot
Jun 24, 2026
Merged

ci: add Dependabot for GitHub Actions and Swift deps#32
BlackHole1 merged 1 commit into
mainfrom
ci/dependabot

Conversation

@BlackHole1

Copy link
Copy Markdown
Member

What

Adds .github/dependabot.yml to automate dependency updates across the project's two dependency surfaces:

  • GitHub Actions — the actions pinned in the ci / nightly / release / build-publish workflows.
  • Swift packages — Sparkle, KeyboardShortcuts, PermissionFlow. Dependabot's xcodeproj support discovers the pins in the Xcode project bundle (LockIME.xcodeproj/.../Package.resolved); no top-level Package.swift is required.

Config choices

  • Daily checks for both ecosystems.
  • Grouped into one PR per ecosystem to cut review noise.
  • 3-day cooldown (cooldown.default-days: 3) so a malicious or broken release has time to be caught/yanked before it lands. Cooldown delays version updates only — security (CVE) updates still open immediately. (Swift supports per-semver-tier cooldown too; Actions supports only the flat default-days.)
  • Commit prefixes follow the repo's Conventional Commits convention (ci(deps) for Actions, build(deps) for Swift).

Note

Dependabot loads this config only after it is merged into the default branch (main).

Adds .github/dependabot.yml covering both dependency surfaces: the
GitHub Actions pinned in the workflows and the Swift packages (Sparkle,
KeyboardShortcuts, PermissionFlow). Dependabot's xcodeproj support
finds the pins in the Xcode project bundle even though this project has
no top-level Package.swift.

Updates are checked daily, grouped into one PR per ecosystem to cut
noise, and held for a 3-day cooldown so a malicious or broken release
has time to be caught before it lands. Cooldown delays version updates
only — security (CVE) patches still open immediately.

Commit prefixes follow the repo's Conventional Commits convention
(ci(deps) for Actions, build(deps) for Swift).

Signed-off-by: Kevin Cui <bh@bugs.cc>
@coderabbitai

coderabbitai Bot commented Jun 24, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 605dc915-0c80-47e5-8e98-8eeceed51f92

📥 Commits

Reviewing files that changed from the base of the PR and between 476a4d2 and 9296668.

📒 Files selected for processing (1)
  • .github/dependabot.yml

Summary by CodeRabbit

  • Chores
    • Added automated dependency update settings for workflow and Swift package updates.
    • Updates are checked daily, with a short delay before new version PRs are opened.
    • Commit messages now use clearer prefixes based on update type.

Walkthrough

A new .github/dependabot.yml file is added to the repository, configuring Dependabot v2 for two package ecosystems. GitHub Actions dependencies (scanned at / within .github/workflows/) and Swift Package Manager dependencies (scanned at /) are each scheduled for daily update checks. Both ecosystems apply a 3-day cooldown before version-update PRs are opened, group all packages via a wildcard pattern, and use ecosystem-specific commit message prefixes: ci for GitHub Actions and build for Swift, with dependency scope included.

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the PR’s Dependabot update for GitHub Actions and Swift dependencies, and it follows the required type: subject format.
Description check ✅ Passed The description is directly about adding Dependabot config for the same dependency surfaces and update policy.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch ci/dependabot

Comment @coderabbitai help to get the list of available commands.

@BlackHole1 BlackHole1 merged commit f3b7191 into main Jun 24, 2026
3 checks passed
@BlackHole1 BlackHole1 deleted the ci/dependabot branch June 24, 2026 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant