Skip to content

Commit 41af73a

Browse files
committed
ci: Back to pull_request_target so we can access the Org secret
Signed-off-by: Joas Schilling <coding@schilljs.com>
1 parent 71b5f12 commit 41af73a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/dependabot-approve-merge.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
name: Dependabot
1010

1111
on:
12-
pull_request:
12+
pull_request_target: # zizmor: ignore[dangerous-triggers]
1313
branches:
1414
- main
1515
- master
@@ -29,8 +29,6 @@ jobs:
2929
permissions:
3030
# for hmarr/auto-approve-action to approve PRs
3131
pull-requests: write
32-
# for alexwilson/enable-github-automerge-action to approve PRs
33-
contents: write
3432

3533
steps:
3634
- name: Disabled on forks
@@ -48,4 +46,4 @@ jobs:
4846
- uses: ahmadnassri/action-dependabot-auto-merge@45fc124d949b19b6b8bf6645b6c9d55f4f9ac61a # v2
4947
with:
5048
target: minor
51-
github-token: ${{ secrets.GITHUB_TOKEN }}
49+
github-token: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }}

0 commit comments

Comments
 (0)