Skip to content

Commit 9751f13

Browse files
authored
Merge pull request #351 from splunk/workflow-approval
Workflow approval
2 parents 4bc5586 + 46d83b7 commit 9751f13

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/ci_build_test.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: CI Build Test
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
branches-ignore:
66
- /^release\/.*/
77
- master
@@ -16,9 +16,19 @@ on:
1616
required: true
1717

1818
jobs:
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
@@ -41,6 +51,8 @@ jobs:
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:
@@ -54,6 +66,8 @@ jobs:
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

0 commit comments

Comments
 (0)