-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4049 from cisagov/feature/add-trivy-scanner
feature: add Trivy scanner
- Loading branch information
Showing
3 changed files
with
51 additions
and
69 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
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" |
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