-
Notifications
You must be signed in to change notification settings - Fork 27
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 #255 from bci-oss/bugfix/failing-trivy-scan
prepare trivy scan for not failing on high findings
- Loading branch information
Showing
1 changed file
with
10 additions
and
7 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -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 | ||
|
@@ -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() | ||
|