7979 # We just populate the env vars for this step to make them viewable in the logs
8080
8181 - name : Checkout local actions
82- uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 .0.3
82+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 .0.0
8383 with :
8484 ref : ${{ github.workflow_sha }}
8585 fetch-depth : 1
@@ -190,7 +190,7 @@ jobs:
190190 lake exe mk_all --check
191191
192192 - name : begin gh-problem-match-wrap for build step
193- uses : leanprover-community/gh-problem-matcher-wrap@20007cb926a46aa324653a387363b52f07709845 # 2025-04-23
193+ uses : leanprover-community/gh-problem-matcher-wrap@65a654fcdf7b64ff7633bc7a558f7b46d59a27bf # 2026-06-25
194194 with :
195195 action : add # In order to be able to run a multiline script, we need to add/remove the problem matcher before and after.
196196 linters : lean
@@ -211,7 +211,7 @@ jobs:
211211 ../tools-branch/scripts/lake-build-with-retry.sh Mathlib
212212 # results of build at pr-branch/.lake/build_summary_Mathlib.json
213213 - name : end gh-problem-match-wrap for build step
214- uses : leanprover-community/gh-problem-matcher-wrap@20007cb926a46aa324653a387363b52f07709845 # 2025-04-23
214+ uses : leanprover-community/gh-problem-matcher-wrap@65a654fcdf7b64ff7633bc7a558f7b46d59a27bf # 2026-06-25
215215 with :
216216 action : remove
217217 linters : lean
@@ -394,7 +394,7 @@ jobs:
394394 shell : landrun --rox /usr --ro /etc/timezone --rw /dev --rox /home/lean/.elan --rox /home/lean/actions-runner/_work --rox /home/lean/.cache/mathlib/ --rw pr-branch/.lake/ --env PATH --env HOME --env GITHUB_OUTPUT --env CI -- bash -euxo pipefail {0}
395395 steps :
396396 - name : Checkout local actions
397- uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 .0.3
397+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 .0.0
398398 with :
399399 ref : ${{ github.workflow_sha }}
400400 fetch-depth : 1
@@ -463,7 +463,7 @@ jobs:
463463 # from the build job's outputs, and the problem-matcher wrap is gated to match.
464464 - name : begin gh-problem-match-wrap for test step
465465 if : ${{ needs.build.outputs.build-outcome == 'success' && needs.build.outputs.mk_all-outcome == 'success' && needs.build.outputs.archive-outcome == 'success' && needs.build.outputs.counterexamples-outcome == 'success' }}
466- uses : leanprover-community/gh-problem-matcher-wrap@20007cb926a46aa324653a387363b52f07709845 # 2025-04-23
466+ uses : leanprover-community/gh-problem-matcher-wrap@65a654fcdf7b64ff7633bc7a558f7b46d59a27bf # 2026-06-25
467467 with :
468468 action : add # In order to be able to run a multiline script, we need to add/remove the problem matcher before and after.
469469 linters : lean
@@ -475,7 +475,7 @@ jobs:
475475 ../tools-branch/scripts/lake-build-wrapper.py .lake/build_summary_MathlibTest.json lake --iofail test
476476 - name : end gh-problem-match-wrap for test step
477477 if : ${{ needs.build.outputs.build-outcome == 'success' && needs.build.outputs.mk_all-outcome == 'success' && needs.build.outputs.archive-outcome == 'success' && needs.build.outputs.counterexamples-outcome == 'success' }}
478- uses : leanprover-community/gh-problem-matcher-wrap@20007cb926a46aa324653a387363b52f07709845 # 2025-04-23
478+ uses : leanprover-community/gh-problem-matcher-wrap@65a654fcdf7b64ff7633bc7a558f7b46d59a27bf # 2026-06-25
479479 with :
480480 action : remove
481481 linters : lean
@@ -485,7 +485,7 @@ jobs:
485485 # lint feedback is still reported. The problem-matcher wrap is gated to match.
486486 - name : begin gh-problem-match-wrap for shake and lint steps
487487 if : ${{ always() && (needs.build.outputs.build-outcome == 'success' || needs.build.outputs.build-outcome == 'failure') }}
488- uses : leanprover-community/gh-problem-matcher-wrap@20007cb926a46aa324653a387363b52f07709845 # 2025-04-23
488+ uses : leanprover-community/gh-problem-matcher-wrap@65a654fcdf7b64ff7633bc7a558f7b46d59a27bf # 2026-06-25
489489 with :
490490 action : add # In order to be able to run a multiline script, we need to add/remove the problem matcher before and after.
491491 linters : gcc
@@ -538,7 +538,7 @@ jobs:
538538
539539 - name : end gh-problem-match-wrap for shake and lint steps
540540 if : ${{ always() && (needs.build.outputs.build-outcome == 'success' || needs.build.outputs.build-outcome == 'failure') }}
541- uses : leanprover-community/gh-problem-matcher-wrap@20007cb926a46aa324653a387363b52f07709845 # 2025-04-23
541+ uses : leanprover-community/gh-problem-matcher-wrap@65a654fcdf7b64ff7633bc7a558f7b46d59a27bf # 2026-06-25
542542 with :
543543 action : remove
544544 linters : gcc
@@ -604,7 +604,7 @@ jobs:
604604 # `build_template` via `pull_request_target`, never this one — so
605605 # `pr_branch_ref` is always a trusted ref here. Fork PRs keep `master`.
606606 - name : Checkout tools branch
607- uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 .0.3
607+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 .0.0
608608 with :
609609 ref : ${{ inputs.tools_branch_ref != '' && inputs.tools_branch_ref || (github.event.pull_request.head.repo.fork && 'master' || inputs.pr_branch_ref) }}
610610 fetch-depth : 1
@@ -674,17 +674,20 @@ jobs:
674674 contents : read
675675 steps :
676676
677- - uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 .0.3
677+ - uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 .0.0
678678 with :
679679 ref : ${{ inputs.pr_branch_ref }}
680680 # Untrusted (potentially fork) checkout: don't persist the GITHUB_TOKEN into its .git/config.
681681 persist-credentials : false
682+ # This job runs with only `contents: read` and no persisted credentials,
683+ # so checking out fork PR code under pull_request_target is safe.
684+ allow-unsafe-pr-checkout : true
682685
683686 # Sparse-checkout master's `.github/actions/` so the trust dispatch
684687 # below loads from a trust-rooted source, not from PR-branch-controlled
685688 # content. Mirrors the `Checkout local actions` step in the `build` job.
686689 - name : Checkout local actions
687- uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 .0.3
690+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 .0.0
688691 with :
689692 ref : ${{ github.workflow_sha }}
690693 fetch-depth : 1
@@ -748,7 +751,7 @@ jobs:
748751 lake exe graph
749752
750753 - name : Checkout local actions
751- uses : actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 .0.3
754+ uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 .0.0
752755 with :
753756 ref : ${{ github.workflow_sha }}
754757 fetch-depth : 1
0 commit comments