-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (48 loc) · 1.52 KB
/
code-scan-to-dojo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: code-scan-dojo
# Controls when the workflow will run
on:
push:
branches:
- 'm.s/test-defectdojo'
pull_request:
types:
- labeled
workflow_dispatch:
jobs:
deploy-scan:
if: ${{ (github.ref == 'refs/heads/m.s/test-defectdojo') }}
uses: oozou/.github/.github/workflows/code-scan-dojo.yaml@aws-scan-pipeline
with:
SCAN_TYPE: IAC
SCAN_INCLUDE: .
DOJO_REUPLOAD: true
DOJO_AUTO_ASSIGN: true
DOJO_ASSIGNEE: [email protected]
SEND_SLACK_NOTIFICATION: true
secrets:
DOJO_URL: ${{ secrets.DOJO_URL }}
DOJO_API_KEY: ${{ secrets.DOJO_API_KEY }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_CH: "#notification-test"
scan-by-labels:
if: ${{ (contains(github.event.pull_request.labels.*.name, 'trigger-scan')) }}
uses: oozou/.github/.github/workflows/code-scan-dojo.yaml@aws-scan-pipeline
with:
SCAN_TYPE: IAC
SCAN_INCLUDE: .
DOJO_REUPLOAD: true
DOJO_AUTO_ASSIGN: true
DOJO_ASSIGNEE: [email protected]
SEND_SLACK_NOTIFICATION: true
secrets:
DOJO_URL: ${{ secrets.DOJO_URL }}
DOJO_API_KEY: ${{ secrets.DOJO_API_KEY }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_CH: "#notification-test"
remove_label_if_exists:
if: ${{ contains(github.event.pull_request.labels.*.name, 'trigger-scan') }}
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/[email protected]
with:
labels: trigger-scan