Skip to content

Fix Dependabot merge token workflow permission - #4664

Merged
cklin merged 1 commit into
mainfrom
cklin/dependabot-automation-permission-fix
Nov 20, 2026
Merged

cklin merged 1 commit into
mainfrom
cklin/dependabot-automation-permission-fix

Conversation

@cklin

@cklin cklin commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Grant workflows: write to the scoped Dependabot merge token so it can merge updates that modify GitHub Actions workflow files.

Recent automation runs fail when merging #4658 with HTTP 403 because the merge token omits this permission. The codeql-ci-app already has the permission; this change includes it in the restricted token request.

Validation: node --test .github/dependabot-automation/*.test.cjs passed (77 tests); git diff --check passed. Live merging has not been tested.

No changelog entry is needed because this only changes repository automation.

Remember to update the changelog if there have been user-facing changes!

Grant the scoped merge token workflow write access so Dependabot updates to GitHub Actions workflows can be merged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9d1948dd-9020-4960-bfcd-1898ed5e1d59
@cklin
cklin requested a review from a team as a code owner November 19, 2026 19:07
Copilot AI adaptive review requested due to automatic review settings November 19, 2026 19:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Granting workflows:write lets unattended merges modify privileged CI workflows, including the automation itself, requiring maintainer validation of the expanded trust boundary and unverified App installation permissions.

No open issues 🎉

What changed in this PR

Updates Dependabot automation so its scoped merge token can merge updates that modify GitHub Actions workflows, addressing the reported HTTP 403 failure for #4658.

Changes:

  • Adds permission-workflows: write to the merge token request while preserving its existing repository scope and other permissions.
File Description
.github/​workflows/​dependabot-pr.yml Grants the scoped merge token permission to merge workflow updates.

Review effort: Max (adaptive)

@cklin
cklin enabled auto-merge November 19, 2026 19:17
@cklin
cklin merged commit 3fbc744 into main Nov 20, 2026
23 checks passed
@cklin
cklin deleted the cklin/dependabot-automation-permission-fix branch November 20, 2026 07:29
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.

3 participants