|
79 | 79 | # We just populate the env vars for this step to make them viewable in the logs |
80 | 80 |
|
81 | 81 | - name: Checkout local actions |
82 | | - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 |
| 82 | + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
83 | 83 | with: |
84 | 84 | ref: ${{ github.workflow_sha }} |
85 | 85 | fetch-depth: 1 |
@@ -394,7 +394,7 @@ jobs: |
394 | 394 | 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} |
395 | 395 | steps: |
396 | 396 | - name: Checkout local actions |
397 | | - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 |
| 397 | + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
398 | 398 | with: |
399 | 399 | ref: ${{ github.workflow_sha }} |
400 | 400 | fetch-depth: 1 |
@@ -604,7 +604,7 @@ jobs: |
604 | 604 | # `build_template` via `pull_request_target`, never this one — so |
605 | 605 | # `pr_branch_ref` is always a trusted ref here. Fork PRs keep `master`. |
606 | 606 | - name: Checkout tools branch |
607 | | - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 |
| 607 | + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
608 | 608 | with: |
609 | 609 | ref: ${{ inputs.tools_branch_ref != '' && inputs.tools_branch_ref || (github.event.pull_request.head.repo.fork && 'master' || inputs.pr_branch_ref) }} |
610 | 610 | fetch-depth: 1 |
@@ -674,17 +674,20 @@ jobs: |
674 | 674 | contents: read |
675 | 675 | steps: |
676 | 676 |
|
677 | | - - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 |
| 677 | + - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
678 | 678 | with: |
679 | 679 | ref: ${{ inputs.pr_branch_ref }} |
680 | 680 | # Untrusted (potentially fork) checkout: don't persist the GITHUB_TOKEN into its .git/config. |
681 | 681 | 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 |
682 | 685 |
|
683 | 686 | # Sparse-checkout master's `.github/actions/` so the trust dispatch |
684 | 687 | # below loads from a trust-rooted source, not from PR-branch-controlled |
685 | 688 | # content. Mirrors the `Checkout local actions` step in the `build` job. |
686 | 689 | - name: Checkout local actions |
687 | | - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 |
| 690 | + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
688 | 691 | with: |
689 | 692 | ref: ${{ github.workflow_sha }} |
690 | 693 | fetch-depth: 1 |
@@ -748,7 +751,7 @@ jobs: |
748 | 751 | lake exe graph |
749 | 752 |
|
750 | 753 | - name: Checkout local actions |
751 | | - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 |
| 754 | + uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
752 | 755 | with: |
753 | 756 | ref: ${{ github.workflow_sha }} |
754 | 757 | fetch-depth: 1 |
|
0 commit comments