Skip to content

Grant workflow permissions for Dependabot auto-merge#452

Merged
adamw merged 3 commits intomasterfrom
fix/dependabot-auto-merge
Mar 11, 2026
Merged

Grant workflow permissions for Dependabot auto-merge#452
adamw merged 3 commits intomasterfrom
fix/dependabot-auto-merge

Conversation

@endrju19
Copy link
Contributor

@endrju19 endrju19 commented Mar 10, 2026

Summary

  • Replace secrets: inherit with explicit permissions on auto-merge-dependabot job
  • Grants contents: write, pull-requests: write, and workflows: write so GITHUB_TOKEN can merge PRs that modify workflow files

Root cause

Dependabot PRs in this repo bump GitHub Actions versions in .github/workflows/ci.yml. Merging PRs that change workflow files requires the workflows permission, which GITHUB_TOKEN doesn't have by default. The secrets: inherit approach fell back to GITHUB_TOKEN without this permission.

@adamw
Copy link
Member

adamw commented Mar 10, 2026

there are conflicts?

@endrju19 endrju19 force-pushed the fix/dependabot-auto-merge branch from 7646d84 to d3ce96b Compare March 10, 2026 13:04
@endrju19 endrju19 changed the title Fix Dependabot auto-merge Fix auto-merge token and add workflow permissions Mar 10, 2026
@endrju19 endrju19 changed the title Fix auto-merge token and add workflow permissions Pass explicit token in auto-merge-dependabot Mar 10, 2026
@endrju19 endrju19 changed the title Pass explicit token in auto-merge-dependabot Grant workflow permissions for Dependabot auto-merge Mar 10, 2026
@adamw adamw merged commit db7e480 into master Mar 11, 2026
@adamw adamw deleted the fix/dependabot-auto-merge branch March 11, 2026 08:47
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.

2 participants