Loading templates/gitlab-ci-maven-jib.yml +3 −0 Original line number Diff line number Diff line Loading @@ -157,6 +157,8 @@ mvn-trivy: # Generate a report in the GitLab format trivy convert --format template --template "@/contrib/gitlab.tpl" --output reports/jib-trivy-${basename}.gitlab.json reports/jib-trivy-${basename}.native.json # Generate a report in the Code Quality format trivy convert --format template --template "@/contrib/gitlab-codequality.tpl" --output reports/jib-trivy-${basename}.gitlab-codequality.json reports/jib-trivy-${basename}.native.json # console output trivy convert --format table reports/jib-trivy-${basename}.native.json Loading @@ -170,6 +172,7 @@ mvn-trivy: - "reports/jib-trivy-*" reports: container_scanning: "reports/jib-trivy-*.gitlab.json" codequality: "reports/jib-trivy-*.gitlab-codequality.json" cache: - key: "$CI_COMMIT_REF_SLUG-trivy" paths: Loading Loading
templates/gitlab-ci-maven-jib.yml +3 −0 Original line number Diff line number Diff line Loading @@ -157,6 +157,8 @@ mvn-trivy: # Generate a report in the GitLab format trivy convert --format template --template "@/contrib/gitlab.tpl" --output reports/jib-trivy-${basename}.gitlab.json reports/jib-trivy-${basename}.native.json # Generate a report in the Code Quality format trivy convert --format template --template "@/contrib/gitlab-codequality.tpl" --output reports/jib-trivy-${basename}.gitlab-codequality.json reports/jib-trivy-${basename}.native.json # console output trivy convert --format table reports/jib-trivy-${basename}.native.json Loading @@ -170,6 +172,7 @@ mvn-trivy: - "reports/jib-trivy-*" reports: container_scanning: "reports/jib-trivy-*.gitlab.json" codequality: "reports/jib-trivy-*.gitlab-codequality.json" cache: - key: "$CI_COMMIT_REF_SLUG-trivy" paths: Loading