CVE Scanning #689
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CVE Scanning | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 8,18 * * 1-5' | |
push: | |
paths: | |
- '**/package.json' | |
- '**/package-lock.json' | |
- '**/Dockerfile' | |
- '.github/workflows/*-ignore-list.xml' | |
- '.github/workflows/security.yml' | |
jobs: | |
node-modules-scan: | |
name: ${{ matrix.module-folder }}-node-scan | |
runs-on: ubuntu-latest | |
continue-on-error: false | |
strategy: | |
matrix: | |
module-folder: ['.'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Build project with NPM | |
run: npm install --omit=dev | |
working-directory: ${{ matrix.module-folder }} | |
- name: Depcheck | |
uses: dependency-check/Dependency-Check_Action@main | |
id: Depcheck | |
with: | |
project: '.' | |
path: '.' | |
format: 'HTML' | |
out: '${{ matrix.module-folder }}-reports' | |
args: > | |
--suppression .github/node-cve-ignore-list.xml | |
--nodeAuditSkipDevDependencies | |
--nodePackageSkipDevDependencies | |
--failOnCVSS 5 | |
--enableRetired | |
- name: Upload Test results | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Depcheck report | |
path: ${{ github.workspace }}/${{ matrix.module-folder }}-reports |