Skip to content

Commit debad97

Browse files
ci(#159): verify exact PR head in ci.yml
1 parent 7862674 commit debad97

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
2828
with:
2929
persist-credentials: false
30+
# Scientific PR evidence must describe the submitted head itself.
31+
# The reusable pilot separately exercises GitHub's synthetic merge ref.
32+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
3033
- name: Set up Python ${{ matrix.python-version }}
3134
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3235
with:

0 commit comments

Comments
 (0)