Skip to content

Commit 99641b3

Browse files
committed
gha: tests: add workaround for pull_request_target
Fixes #209 Kudos @shcheklein
1 parent 8921bc8 commit 99641b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ on:
22
push:
33
branches:
44
- master
5+
pull_request:
56
pull_request_target:
67

78
name: Tests
@@ -28,6 +29,9 @@ jobs:
2829

2930
steps:
3031
- uses: actions/checkout@v3
32+
with:
33+
# NOTE: needed for pull_request_target to use PR code
34+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
3135

3236
- uses: actions/setup-python@v4
3337
with:

0 commit comments

Comments
 (0)