Skip to content

Commit bb232a8

Browse files
Update permissions in dependabot-auto-merge workflow (#161)
2 parents f83216e + 8d35845 commit bb232a8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/dependabot-auto-merge.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: Dependabot auto-merge
22
on: pull_request
33
permissions:
4-
contents: write
5-
pull-requests: write
4+
contents: read
65
jobs:
76
dependabot-auto-merge:
87
runs-on: ubuntu-latest
98
if: ${{ github.actor == 'dependabot[bot]' && !github.event.pull_request.auto_merge }}
9+
permissions:
10+
contents: write
11+
pull-requests: write
1012
steps:
1113
- name: Approve a PR
1214
run: gh pr review --approve "$PR_URL"

0 commit comments

Comments
 (0)