Skip to content

ci: auto-merge green Dependabot PRs (minor/patch) - #96

Merged
bgard68 merged 2 commits into
mainfrom
ci/dependabot-auto-merge
Sep 14, 2026
Merged

bgard68 merged 2 commits into
mainfrom
ci/dependabot-auto-merge

Conversation

@bgard68

@bgard68 bgard68 commented Sep 14, 2026

Copy link
Copy Markdown
Owner

Caveat 2 — replicates the auto-merge automation here, respecting this repo's action-allowlist guard.

Adds .github/workflows/dependabot-auto-merge.yml: Dependabot PRs whose required checks all pass merge themselves (minor/patch; majors held for review). Branch protection still gates everything.

  • No token needed — only the automatic GITHUB_TOKEN.
  • dependabot/fetch-metadata is dependabot-owned, so it's not covered by github_owned_allowed. Per scripts/check-action-allowlist.ps1, it's added in both places:
    • .github/allowed-actions.txt (in this PR)
    • the repository's selected-actions setting (already updated via API)
    • SHA-pinned to v3.1.0.
  • Prerequisite done: I enabled Settings → Allow auto-merge on this repo.

No Central Package Management lock files here, so no lock-file-sync workflow is needed.

🤖 Generated with Claude Code

bgard68 and others added 2 commits September 14, 2026 07:16
Adds dependabot-auto-merge.yml: Dependabot PRs whose required checks all
pass merge themselves (minor/patch; majors held). Uses only GITHUB_TOKEN,
no PAT. "Allow auto-merge" is enabled on the repo.

fetch-metadata is dependabot-owned (not covered by github_owned_allowed),
so it is added to allowed-actions.txt and the selected-actions setting,
as scripts/check-action-allowlist.ps1 requires. SHA-pinned.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
RepositoryWorkflowsTests scans the repo's own workflows with its own rule
catalogue and the first version tripped two:

  GHA003 — job had no timeout-minutes; added timeout-minutes: 5.
  GHA002 — pull-requests: write was workflow-scoped, so it reached every
           job; moved it onto the one job that needs it and set the
           workflow default to contents: read. Also dropped contents:
           write, which enabling auto-merge does not require (the merge is
           performed later by GitHub).

Verified locally: the full RepositoryWorkflowsTests theory passes, this
file included.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@bgard68
bgard68 merged commit 2c4f7f6 into main Sep 14, 2026
11 checks passed
@bgard68
bgard68 deleted the ci/dependabot-auto-merge branch September 14, 2026 12:28
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