Skip to content

Commit d0c8838

Browse files
authored
Merge pull request #323 from cloudfoundry-community/workflow-approval
Workflow approval
2 parents 4e20f1d + 44f0458 commit d0c8838

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,25 @@ name: PCF
22
on:
33
push:
44
branches: [ "develop" ]
5-
pull_request:
5+
pull_request_target:
66
branches: [ "develop" ]
77

88
workflow_dispatch:
99

1010
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+
1119
fossa-scan:
1220
continue-on-error: true
1321
runs-on: ubuntu-latest
22+
needs:
23+
- workflow_approval
1424
steps:
1525
- uses: actions/checkout@v3
1626
- name: run fossa anlyze and create report
@@ -33,6 +43,8 @@ jobs:
3343

3444
semgrep:
3545
runs-on: ubuntu-latest
46+
needs:
47+
- workflow_approval
3648
name: security-sast-semgrep
3749
if: github.actor != 'dependabot[bot]'
3850
steps:
@@ -45,6 +57,8 @@ jobs:
4557

4658
build:
4759
runs-on: ubuntu-latest
60+
needs:
61+
- workflow_approval
4862
steps:
4963
- uses: actions/checkout@v3
5064
- uses: actions/setup-go@v3

0 commit comments

Comments
 (0)