Skip to content

Commit 56cc080

Browse files
fix: Potential fix for code scanning alert no. 4: Untrusted Checkout TOCTOU (#30)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent e2198bb commit 56cc080

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/fix-renovate.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ jobs:
6767
echo "The PR commit is ${{ steps.get-pr-data.outputs.head_sha }}"
6868
echo "The repository is ${{ steps.get-pr-data.outputs.head_repo }}"
6969
70-
- name: ✈ Checkout PR branch
70+
- name: ✈ Checkout PR commit
7171
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
7272
with:
7373
fetch-depth: 0
7474
repository: ${{ steps.get-pr-data.outputs.head_repo }}
75-
ref: ${{ steps.get-pr-data.outputs.head_branch }}
75+
ref: ${{ steps.get-pr-data.outputs.head_sha }}
7676

7777
- name: 🔍 Verify checked-out commit
7878
run: |

0 commit comments

Comments
 (0)