Skip to content

Commit 715b305

Browse files
authored
adjust GHA to trigger on PR and not pull_request_target (#653)
<!-- markdownlint-disable MD041 --> #### What this PR does / why we need it #### Which issue(s) this PR fixes <!-- Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. -->
1 parent 729df8b commit 715b305

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
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/ ctf

component/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ endif
2828
SHELL = /usr/bin/env bash -o pipefail
2929
.SHELLFLAGS = -ec
3030

31-
OCM_CLI_VERSION ?= 0.15.0
31+
OCM_CLI_VERSION ?= 0.24.0
3232

3333
## Location to install dependencies to
3434
LOCALBIN ?= $(shell pwd)/bin

0 commit comments

Comments
 (0)