Skip to content

Commit cea5741

Browse files
committed
adjust GHA to trigger on PR and not pull_request_target
1 parent 729df8b commit cea5741

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/components.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: component CTFs
22

33
on:
4-
pull_request_target:
4+
pull_request:
5+
branches:
6+
-main
57
push:
68
branches:
79
- main
@@ -36,6 +38,4 @@ jobs:
3638
with:
3739
go-version-file: '${{ github.workspace }}/go.mod'
3840
- name: CTF
39-
run: |
40-
cd component/
41-
PATH=$PATH:$(go env GOPATH)/bin make ocm && make ctf
41+
run: PATH=$PATH:$(go env GOPATH)/bin make -C component/ ocm && make -C component/ ctf

0 commit comments

Comments
 (0)