Skip to content

Commit d2da599

Browse files
authored
Fix failing snyk running on forks (#325)
* Fix failing snyk running on forks Signed-off-by: Pavol Loffay <[email protected]> * specify fetch Signed-off-by: Pavol Loffay <[email protected]> * Fix PR target branch Signed-off-by: Pavol Loffay <[email protected]>
1 parent 37a2943 commit d2da599

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ on:
66
paths-ignore:
77
- '**/README.md'
88
- 'smoke-tests/matrix'
9-
pull_request:
9+
pull_request_target:
10+
branches:
11+
- main
1012

1113
jobs:
1214
build:
@@ -72,6 +74,8 @@ jobs:
7274
- name: Check out code
7375
uses: actions/[email protected]
7476
with:
77+
ref: ${{github.event.pull_request.head.ref}}
78+
repository: ${{github.event.pull_request.head.repo.full_name}}
7579
fetch-depth: 0
7680
submodules: true
7781
- name: Setup snyk

0 commit comments

Comments
 (0)