Skip to content

Add repository-projects permission to dependabot workflow - #207

Draft
MusicalNinjaDad wants to merge 1 commit into
mainfrom
vibe/fix-dependabot-permissions-46c1bb
Draft

Add repository-projects permission to dependabot workflow#207
MusicalNinjaDad wants to merge 1 commit into
mainfrom
vibe/fix-dependabot-permissions-46c1bb

Conversation

@MusicalNinjaDad

Copy link
Copy Markdown
Owner

Summary

  • Add repository-projects: write permission to the dependabot-approve workflow

This permission is required for the gh pr merge --auto --squash command to successfully enable auto-merge on Dependabot PRs. Without this permission, the workflow runs but fails to enable auto-merge.

Verification

The workflow currently has contents: write and pull-requests: write permissions, but PR #205 (a Dependabot PR updating fkirc/skip-duplicate-actions) did not have auto-merge enabled despite the workflow running successfully. Adding repository-projects: write provides the necessary scope for the GitHub CLI to modify PR merge settings.

Closes #205

This permission is needed for the gh CLI to enable auto-merge on
Dependabot PRs.

Closes #205

Co-authored-by: MusicalNinjaDad <MusicalNinjaDad@users.noreply.github.com>
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