File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change 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
@@ -80,21 +94,11 @@ jobs:
8094 check_name : Unit Test Results
8195 files : " target/surefire-reports/*.xml"
8296
83- functional_tests_approval :
84- name : Approve functional tests
85- runs-on : ubuntu-20.04
86- environment : workflow-approval
87- needs :
88- - build-unit-test
89- steps :
90- - name : Approve functional tests
91- run : echo For security reasons, all pull requests need to be approved first before running any automated CI.
92-
9397 e2e_test :
9498 name : e2e test - kafka version-${{ matrix.kafka_version }}
9599 runs-on : ubuntu-20.04
96100 needs :
97- - functional_tests_approval
101+ - build-unit-test
98102 strategy :
99103 fail-fast : false
100104 matrix :
You can’t perform that action at this time.
0 commit comments