Skip to content

Commit 3aa617b

Browse files
committed
fix too broad permissions
1 parent e2cee8b commit 3aa617b

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ name: Auto Merge Dependabot
1111
on:
1212
pull_request:
1313

14-
permissions:
15-
contents: write
16-
pull-requests: write
17-
workflows: write
14+
permissions: {}
1815

1916
jobs:
2017
auto-merge:
@@ -23,6 +20,11 @@ jobs:
2320

2421
timeout-minutes: 5
2522

23+
permissions:
24+
contents: write # Required to squash/merge/rebase the dependabot PR
25+
pull-requests: write # Required to approve and merge the pull request
26+
workflows: write # Required when the dependabot PR itself modifies workflow files
27+
2628
# Only run for Dependabot PRs - security: prevent running on PRs from forks or other actors
2729
if: github.actor == 'dependabot[bot]'
2830

0 commit comments

Comments
 (0)