Skip to content

Commit 07bb412

Browse files
authored
Add permissions for Dependabot in CI workflow (#536)
part of SolidOS/solidos#231 (comment)
1 parent 3a7198c commit 07bb412

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
@@ -44,6 +44,9 @@ jobs:
4444
needs: build # After the E2E and build jobs, if one of them fails, it won't merge the PR.
4545
runs-on: ubuntu-latest
4646
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}} # Detect that the PR author is dependabot
47+
permissions:
48+
contents: write
49+
pull-requests: write
4750
steps:
4851
- name: Enable auto-merge for Dependabot PRs
4952
run: gh pr merge --auto --merge "$PR_URL" # Use Github CLI to merge automatically the PR

0 commit comments

Comments
 (0)