From a87fc4ea8a891a49fc4cb344f2c1f4919eb398fe Mon Sep 17 00:00:00 2001 From: Marcus Hert Da Coregio Date: Thu, 14 Mar 2024 14:33:00 -0300 Subject: [PATCH] Use pull_request_target for merge-dependabot-pr.yml Issue gh-14721 --- .github/workflows/merge-dependabot-pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/merge-dependabot-pr.yml b/.github/workflows/merge-dependabot-pr.yml index dfae7104dc..0dcae6885d 100644 --- a/.github/workflows/merge-dependabot-pr.yml +++ b/.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: