ci: auto-merge green Dependabot PRs (minor/patch) - #96
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.GITHUB_TOKEN.dependabot/fetch-metadatais dependabot-owned, so it's not covered bygithub_owned_allowed. Perscripts/check-action-allowlist.ps1, it's added in both places:.github/allowed-actions.txt(in this PR)No Central Package Management lock files here, so no lock-file-sync workflow is needed.
🤖 Generated with Claude Code