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: