File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 11name : CI Build Test
22
33on :
4- pull_request :
4+ pull_request_target :
55 branches-ignore :
66 - /^release\/.*/
77 - master
1616 required : true
1717
1818jobs :
19+ workflow_approval :
20+ name : Approve workflow
21+ runs-on : ubuntu-20.04
22+ environment : workflow-approval
23+ steps :
24+ - name : Approve workflow
25+ run : echo For security reasons, all pull requests need to be approved first before running any automated CI.
26+
1927 fossa-scan :
2028 continue-on-error : true
2129 runs-on : ubuntu-latest
30+ needs :
31+ - workflow_approval
2232 steps :
2333 - uses : actions/checkout@v3
2434 - name : run fossa anlyze and create report
4151
4252 semgrep :
4353 runs-on : ubuntu-latest
54+ needs :
55+ - workflow_approval
4456 name : security-sast-semgrep
4557 if : github.actor != 'dependabot[bot]'
4658 steps :
5466 build-unit-test :
5567 name : build and run unit test
5668 runs-on : ubuntu-20.04
69+ needs :
70+ - workflow_approval
5771 steps :
5872 - name : Checkout
5973 uses : actions/checkout@v2
You can’t perform that action at this time.
0 commit comments