Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/meta-import-risk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
- name: Checkout trusted base
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.base.sha }}
# The PR payload's base.sha can predate the workflow and its helper scripts.
ref: ${{ github.event.pull_request.base.ref }}
persist-credentials: false
# Do this before the model job, including on the PR-opened event: the
# meta-codesync label may not have arrived yet.
Expand Down Expand Up @@ -69,12 +70,12 @@ jobs:
risk: ${{ steps.assess.outputs.risk }}
steps:
# pull_request_target has access to the model secret even for fork PRs.
# Only the trusted base commit is checked out; PR code is read as data
# Only the current trusted base branch is checked out; PR code is read as data
# through the GitHub API and is never executed on this runner.
- name: Checkout trusted base
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.base.sha }}
ref: ${{ github.event.pull_request.base.ref }}
persist-credentials: false
- name: Assess changed files and patch with Muse
id: assess
Expand Down Expand Up @@ -119,7 +120,7 @@ jobs:
- name: Checkout trusted base
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.base.sha }}
ref: ${{ github.event.pull_request.base.ref }}
persist-credentials: false
- name: Apply Meta Review Required when needed
uses: actions/github-script@v8
Expand Down
Loading