From 8479482759126cc08b00c99b48b0d0bf1e502461 Mon Sep 17 00:00:00 2001 From: Gary Wang Date: Tue, 21 Jul 2026 15:43:34 +0800 Subject: [PATCH] fix: add repository parameter to checkout steps for fork PR compatibility for cppcheck.yml This amends 10499fbaa1a15db6ff9bfccf9ae943cfc1c23395 Log: --- workflow-templates/cppcheck.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/workflow-templates/cppcheck.yml b/workflow-templates/cppcheck.yml index f41da53e7..7915f23a7 100644 --- a/workflow-templates/cppcheck.yml +++ b/workflow-templates/cppcheck.yml @@ -14,9 +14,11 @@ jobs: runs-on: ubuntu-latest steps: - run: export - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 with: ref: ${{ github.event.pull_request.head.sha }} + repository: ${{ github.event.pull_request.head.repo.full_name }} + allow-unsafe-pr-checkout: true persist-credentials: false - uses: linuxdeepin/action-cppcheck@main with: