Skip to content

Commit

Permalink
set scan results to always
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmostafa committed Sep 13, 2024
1 parent fdfa3ce commit f89c397
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/trivy-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,18 @@ jobs:
- name: Run vulnerability scanner
uses: aquasecurity/[email protected]
with:
# format: "sarif"
# output: "trivy-dotnet-results.sarif"
scan-type: "fs"
format: "sarif"
output: "trivy-dotnet-results.sarif"
scan-type: "repo"
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"
- name: Upload scan results to Security tab
uses: github/codeql-action/upload-sarif@v3
if: always()
with:
category: ".NET"
sarif_file: "trivy-dotnet-results.sarif"

# nodejs:
# name: Node.js Analysis
Expand Down

0 comments on commit f89c397

Please sign in to comment.