forked from christosservos/Alamofire
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (35 loc) · 1.38 KB
/
depcheck_CONTAINER.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
name: SCA - Depcheck - Container
on:
push:
workflow_dispatch:
jobs:
Dependency_check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/cache@v3
with:
path: |
~/.cache/dependency-check
# Ensure the key is unique and based on something that changes when the cache should be rebuilt
key: ${{ runner.os }}-dependency-check-${{ hashFiles('*.db', '*.json') }}
restore-keys: |
${{ runner.os }}-dependency-check-
- name: Depcheck - Container
run: |
docker run --name DC --volume ${{ github.workspace }}:/src --volume ~/.cache/dependency-check:/usr/share/dependency-check/data owasp/dependency-check --scan '/src' --out "/src/build/reports" --nvdApiKey ${{ secrets.NVD_API_KEY }}
# docker create --name GL --entrypoint /bin/bash --interactive --volume ${{ github.workspace }}:/src zricethezav/gitleaks
# docker start GL
# docker exec GL git config --global --add safe.directory '/src'
# docker exec GL
env:
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
- name: Upload results - SCA
uses: actions/upload-artifact@master
with:
name: Depcheck report
path: ${{github.workspace}}/build/reports
- run: ls -la