|
22 | 22 | - name: Checkout trusted base |
23 | 23 | uses: actions/checkout@v6 |
24 | 24 | with: |
25 | | - ref: ${{ github.event.pull_request.base.sha }} |
| 25 | + # The PR payload's base.sha can predate the workflow and its helper scripts. |
| 26 | + ref: ${{ github.event.pull_request.base.ref }} |
26 | 27 | persist-credentials: false |
27 | 28 | # Do this before the model job, including on the PR-opened event: the |
28 | 29 | # meta-codesync label may not have arrived yet. |
@@ -69,12 +70,12 @@ jobs: |
69 | 70 | risk: ${{ steps.assess.outputs.risk }} |
70 | 71 | steps: |
71 | 72 | # pull_request_target has access to the model secret even for fork PRs. |
72 | | - # Only the trusted base commit is checked out; PR code is read as data |
| 73 | + # Only the current trusted base branch is checked out; PR code is read as data |
73 | 74 | # through the GitHub API and is never executed on this runner. |
74 | 75 | - name: Checkout trusted base |
75 | 76 | uses: actions/checkout@v6 |
76 | 77 | with: |
77 | | - ref: ${{ github.event.pull_request.base.sha }} |
| 78 | + ref: ${{ github.event.pull_request.base.ref }} |
78 | 79 | persist-credentials: false |
79 | 80 | - name: Assess changed files and patch with Muse |
80 | 81 | id: assess |
@@ -119,7 +120,7 @@ jobs: |
119 | 120 | - name: Checkout trusted base |
120 | 121 | uses: actions/checkout@v6 |
121 | 122 | with: |
122 | | - ref: ${{ github.event.pull_request.base.sha }} |
| 123 | + ref: ${{ github.event.pull_request.base.ref }} |
123 | 124 | persist-credentials: false |
124 | 125 | - name: Apply Meta Review Required when needed |
125 | 126 | uses: actions/github-script@v8 |
|
0 commit comments