forked from WebGoat/WebGoat
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.39 KB
/
sca_and_secret_scanning.yml
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
name: Gitleaks Secrets Scan
on: [push]
jobs:
Credentials_Scanning:
runs-on: ubuntu-latest
steps:
# - name: Checkout code
# uses: actions/checkout@v3
# with:
# fetch-depth: 0
- name: Run Gitleaks from container
run: |
git clone https://github.com/christosservosNCIN/WebGoat.git
docker run --user root --volume ${{ github.workspace }}:/src --interactive zricethezav/gitleaks detect --source=/src --verbose --report-path /src/gitleaks-reports.json
continue-on-error: true
#- name: upload_artifacts
# uses: actions/upload-artifact@v3
#with:
# name: Gitleaks_Artifact
#path: ${{ github.workspace }}/gitleaks-reports.json
- name: Depcheck
uses: dependency-check/Dependency-Check_Action@main
id: Depcheck
with:
project: 'test'
path: '.'
format: 'HTML'
out: 'reports' # this is the default, no need to specify unless you wish to override it
args: >
--enableRetired
- name: Upload Test results for DCheck and Gitleaks
uses: actions/upload-artifact@master
with:
name: Dependency_check artifact + gitleaks artifact
path: |
${{github.workspace}}/dependency-check-report.html
${{ github.workspace }}/gitleaks-reports.json