Skip to content

Commit

Permalink
#136 - apply review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
meiserloh committed Jan 7, 2025
1 parent 47d53c6 commit 08fe966
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ Trivy trivy = new Trivy(this)
trivy.scanImage("ubuntu:24.04", TrivySeverityLevel.ALL, TrivyScanStrategy.UNSTABLE, "--db-repository public.ecr.aws/aquasecurity/trivy-db")
```

Note that the flags "--db-repository public.ecr.aws/aquasecurity/trivy-db --java-db-repository public.ecr.aws/aquasecurity/trivy-java-db"
Note that the flags `--db-repository public.ecr.aws/aquasecurity/trivy-db --java-db-repository public.ecr.aws/aquasecurity/trivy-java-db`
are set by default to avoid rate limiting of Trivy database downloads. If you set `additionalFlags` by yourself, you are overwriting
these default flags and have to make sure to include them in your set of additional flags, if needed.

Expand Down
3 changes: 1 addition & 2 deletions src/com/cloudogu/ces/cesbuildlib/Trivy.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,8 @@ class Trivy implements Serializable {
* @param formattedTrivyReportFilename The file name your report files should get, with file extension. E.g. "ubuntu24report.html"
* @param trivyReportFile The "trivyReportFile" parameter you used in the "scanImage" function, if it was set
*/
@NonCPS
void saveFormattedTrivyReport(String format = TrivyScanFormat.HTML,
String severity = "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL",
String severity = TrivySeverityLevel.ALL,
String formattedTrivyReportFilename = null,
String trivyReportFile = "trivy/trivyReport.json") {

Expand Down

0 comments on commit 08fe966

Please sign in to comment.