Add repository-projects permission to dependabot workflow - #207
Draft
MusicalNinjaDad wants to merge 1 commit into
Draft
Add repository-projects permission to dependabot workflow#207MusicalNinjaDad wants to merge 1 commit into
MusicalNinjaDad wants to merge 1 commit into
Conversation
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>
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.
Summary
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