We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e81741f commit 992bcfeCopy full SHA for 992bcfe
1 file changed
.github/workflows/dependabot_merge.yml
@@ -1,9 +1,9 @@
1
name: Dependabot auto-merge
2
on: pull_request_target
3
4
+# The minted App token (below) performs the writes; the default token only reads.
5
permissions:
- contents: write
6
- pull-requests: write
+ contents: read
7
8
jobs:
9
dependabot:
@@ -16,6 +16,13 @@ jobs:
16
with:
17
client-id: ${{ secrets.MERGE_APP_ID }}
18
private-key: ${{ secrets.MERGE_APP_KEY }}
19
+ # Least privilege: scope the minted token to THIS repo, with only the
20
+ # permissions auto-merge needs — not the App's org-wide
21
+ # actions/issues write across all repositories.
22
+ owner: ${{ github.repository_owner }}
23
+ repositories: ${{ github.event.repository.name }}
24
+ permission-contents: write
25
+ permission-pull-requests: write
26
27
- name: Dependabot metadata
28
id: metadata
0 commit comments