File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,25 @@ name: PCF
2
2
on :
3
3
push :
4
4
branches : [ "develop" ]
5
- pull_request :
5
+ pull_request_target :
6
6
branches : [ "develop" ]
7
7
8
8
workflow_dispatch :
9
9
10
10
jobs :
11
+ workflow_approval :
12
+ name : Approve workflow
13
+ runs-on : ubuntu-latest
14
+ environment : workflow-approval
15
+ steps :
16
+ - name : Approve workflow
17
+ run : echo For security reasons, all pull requests need to be approved first before running any automated CI.
18
+
11
19
fossa-scan :
12
20
continue-on-error : true
13
21
runs-on : ubuntu-latest
22
+ needs :
23
+ - workflow_approval
14
24
steps :
15
25
- uses : actions/checkout@v3
16
26
- name : run fossa anlyze and create report
33
43
34
44
semgrep :
35
45
runs-on : ubuntu-latest
46
+ needs :
47
+ - workflow_approval
36
48
name : security-sast-semgrep
37
49
if : github.actor != 'dependabot[bot]'
38
50
steps :
45
57
46
58
build :
47
59
runs-on : ubuntu-latest
60
+ needs :
61
+ - workflow_approval
48
62
steps :
49
63
- uses : actions/checkout@v3
50
64
- uses : actions/setup-go@v3
You can’t perform that action at this time.
0 commit comments