Merge pull request #4066 from cisagov/dependabot/npm_and_yarn/gallery… #24
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: Trivy Scanner | |
on: | |
push: | |
branches: | |
- develop | |
pull_request: | |
jobs: | |
dotnet: | |
name: .NET Analysis | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run vulnerability scanner | |
uses: aquasecurity/[email protected] | |
with: | |
format: "sarif" | |
output: "trivy-dotnet-results.sarif" | |
scan-type: "fs" | |
scan-ref: "./CSETWebApi" | |
severity: "CRITICAL,HIGH" | |
- name: Upload scan results to Security tab | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
category: ".NET" | |
sarif_file: "trivy-dotnet-results.sarif" | |
nodejs: | |
name: Node.js Analysis | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Run vulnerability scanner | |
uses: aquasecurity/[email protected] | |
with: | |
format: "sarif" | |
output: "trivy-nodejs-results.sarif" | |
scan-type: "fs" | |
scan-ref: "./CSETWebNg" | |
severity: "CRITICAL,HIGH" | |
- name: Upload scan results to Security tab | |
uses: github/codeql-action/upload-sarif@v3 | |
with: | |
category: "Node.js" | |
sarif_file: "trivy-nodejs-results.sarif" |