Merge pull request #2532 from Ludy87/fix_Dangerous_Workflow_4

[Security] Dangerous-Workflow
This commit is contained in:
Anthony Stirling 2024-12-21 22:17:57 +00:00 committed by GitHub
commit 76924ccd2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,9 +31,11 @@ jobs:
- name: Checkout PR branch
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
env:
PULL_REQUEST_REF: ${{ github.event.pull_request.head.ref }}
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: "${{ github.event.pull_request.merge_commit_sha }}"
ref: $PULL_REQUEST_REF
path: pr-branch
fetch-depth: 0