Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepare trivy scan for not failing on high findings #255

Merged
merged 1 commit into from
Nov 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,17 @@ jobs:
uses: actions/checkout@v3

- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@master
# uses: aquasecurity/trivy-action@master
uses: aquasecurity/[email protected]
with:
scan-type: "config"
# ignore-unfixed: true
exit-code: "1"
# exit-code: "1"
hide-progress: false
format: "sarif"
output: "trivy-results1.sarif"
severity: "CRITICAL,HIGH"
# severity: "CRITICAL,HIGH"
vuln-type: "os,library"

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
Expand Down Expand Up @@ -79,16 +81,17 @@ jobs:
run: mvn clean package

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
# uses: aquasecurity/trivy-action@master
uses: aquasecurity/[email protected]
with:
image-ref: "tractusx/sldt-digital-twin-registry:latest"
# ignore-unfixed: true
exit-code: "1"
# exit-code: "1"
hide-progress: false
format: "sarif"
output: "trivy-results-registry.sarif"
severity: "CRITICAL,HIGH"

# severity: "CRITICAL,HIGH"
vuln-type: "os,library"
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
if: always()
Expand Down
Loading