2
0
Эх сурвалжийг харах

Use pull_request_target for merge-dependabot-pr.yml

Issue gh-14721
Marcus Hert Da Coregio 1 жил өмнө
parent
commit
a87fc4ea8a

+ 2 - 2
.github/workflows/merge-dependabot-pr.yml

@@ -1,7 +1,6 @@
 name: Merge Dependabot PR
 
-on:
-  pull_request:
+on: pull_request_target
 
 run-name: Merge Dependabot PR ${{ github.ref_name }}
 
@@ -17,6 +16,7 @@ jobs:
       - uses: actions/checkout@v4
         with:
           show-progress: false
+          ref: ${{ github.event.pull_request.head.sha }}
 
       - uses: actions/setup-java@v4
         with: