Skip to content

Commit e2853bf

Browse files
committed
Add safe ref for useblacksmith/checkout
1 parent ab33126 commit e2853bf

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/codex-review.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
steps:
4444
- name: Checkout
4545
uses: useblacksmith/checkout@c9796daa2a4bdebdab5bd16be2c09a70cd4e1121 # v1
46+
with:
47+
# Important: `pull_request_target` should never checkout the PR head.
48+
ref: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.base.sha || github.sha }}
4649

4750
- name: Check contributor authorization
4851
id: gate

0 commit comments

Comments
 (0)