Skip to content
Open
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: 7 additions & 2 deletions .github/workflows/pr-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,13 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_sha }}
# No ref: check out the default branch (trusted base code). This job
# runs from workflow_run with a write-scoped GITHUB_TOKEN and secrets,
# so it must not check out the fork's head_sha: actions/checkout now
# refuses that (pwn-request guard), and running the fork's copy of
# ci/scripts/pretty_aggregate.py under the write token would be the
# vulnerability itself. The job only needs the trusted aggregation
# script; artifacts and PR metadata come from the API, not the tree.

- name: Set up Python
uses: actions/setup-python@v5
Expand Down