forked from christosservos/Alamofire
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (34 loc) · 1.17 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
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: |
docker run --user root --volume ${{ github.workspace }}:/src --interactive zricethezav/gitleaks detect --source=/src --verbose --no-git --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
uses: actions/upload-artifact@master
with:
name: Dependency_check artifact
path: ${{github.workspace}}/reports