Skip to content

Commit 7619304

Browse files
Copilottimea-solid
andcommitted
Add pull-requests write permission to Dependabot job
Co-authored-by: timea-solid <4144203+timea-solid@users.noreply.github.com>
1 parent f61818f commit 7619304

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.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)