Skip to content

Commit 06ea893

Browse files
authored
Merge pull request #684 from SolidOS/copilot/investigate-dependabot-prs-merging
Fix Dependabot auto-merge by adding pull-requests write permission
2 parents 2ffbdbe + 7619304 commit 06ea893

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ jobs:
5353
needs: build # After the E2E and build jobs, if one of them fails, it won't merge the PR.
5454
runs-on: ubuntu-latest
5555
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}} # Detect that the PR author is dependabot
56+
permissions:
57+
contents: write
58+
pull-requests: write
5659
steps:
5760
- name: Enable auto-merge for Dependabot PRs
5861
run: gh pr merge --auto --merge "$PR_URL" # Use Github CLI to merge automatically the PR

0 commit comments

Comments
 (0)