Skip to content
Draft
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
81a9834
feat: add scan to dojo test
bemillenium Jun 2, 2022
ea2207a
fix: KISC to json output
bemillenium Jun 2, 2022
ae616bf
fix: missing use
bemillenium Jun 2, 2022
944d00c
fix branch
bemillenium Jun 2, 2022
d5eacc0
add debug
bemillenium Jun 2, 2022
00028e5
rename file
bemillenium Jun 2, 2022
01a8b74
chore: update workflow to auto upload to dojo
bemillenium Jun 7, 2022
61e4621
fix python
bemillenium Jun 7, 2022
f3aa90e
fix api key
bemillenium Jun 7, 2022
7a07b6c
fix result path
bemillenium Jun 7, 2022
d8ed916
fix result path
bemillenium Jun 7, 2022
9675f03
run get github commit short sha
bemillenium Jun 7, 2022
65ea33e
fix sha
bemillenium Jun 7, 2022
02a5822
add pass repo
bemillenium Jun 7, 2022
525afbd
add env source_code_management_uri
bemillenium Jun 7, 2022
eaed19b
fix value repo uri
bemillenium Jun 7, 2022
66d95c3
fix repo url
bemillenium Jun 7, 2022
1970ed4
update pipeline
bemillenium Jun 9, 2022
73e1c8e
try to dynamic env
bemillenium Jun 9, 2022
bbe4def
feat: change to use from internal
bemillenium Jun 9, 2022
6325b61
fix wrong pipeline file
bemillenium Jun 9, 2022
d0fcf7e
add curl upload script
bemillenium Jun 12, 2022
4b9733c
test download
bemillenium Jun 12, 2022
fd9810f
change branch
bemillenium Jun 12, 2022
5ffad54
add trigger
bemillenium Jun 12, 2022
b53e8ba
change branch
bemillenium Jun 12, 2022
21ded09
add secret passthough
bemillenium Jun 12, 2022
4ecbb05
test
bemillenium Jun 13, 2022
34ef263
Update code-scan-to-dojo.yaml
bemillenium Jun 16, 2022
ae795d0
Update code-scan-to-dojo.yaml
bemillenium Jun 20, 2022
76b7a35
Update code-scan-to-dojo.yaml
bemillenium Jun 20, 2022
89c5066
Update code-scan-to-dojo.yaml
bemillenium Jun 21, 2022
2beb8d6
Update code-scan-to-dojo.yaml
bemillenium Jun 21, 2022
0ac6c17
Update code-scan-to-dojo.yaml
bemillenium Jun 21, 2022
aac3889
chore: change pipeline ref to develop
bemillenium Jun 21, 2022
1ae6ce6
Update code-scan-to-dojo.yaml
bemillenium Jun 27, 2022
1c5e3c3
Update code-scan-to-dojo.yaml
bemillenium Jun 27, 2022
b1b4a00
Update code-scan-to-dojo.yaml
bemillenium Jun 27, 2022
2963600
Update code-scan-to-dojo.yaml
bemillenium Jun 27, 2022
2ed75e7
update slack channel
lycbrian Jul 5, 2022
d60997d
test shared workflow in new branch
lycbrian Jul 5, 2022
43d7479
update slack channel
lycbrian Jul 5, 2022
dfcf0ac
test code scan dojo with new branch
lycbrian Jul 5, 2022
f36966c
update workflow name
lycbrian Jul 5, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/code-scan-to-dojo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
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: brian@oozou.com
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: m.s@oozou.com
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/action-remove-labels@v1.3.0
with:
labels: trigger-scan