Skip to content

Commit

Permalink
add ignore for trivy root user check
Browse files Browse the repository at this point in the history
  • Loading branch information
rkm committed Nov 19, 2024
1 parent 9e87466 commit e8500b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/trivy-image-scan.bash
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ docker run \
"${TRIVY_IMG}" \
image \
--config "/repo/configs/${config}" \
--ignorefile /repo/configs/.trivyignore \
--format table \
--output /reports/trivy-cve.txt \
"${image}"
Expand All @@ -51,6 +52,7 @@ docker run \
"${TRIVY_IMG}" \
image \
--config "/repo/configs/${config}" \
--ignorefile /repo/configs/.trivyignore \
--format cyclonedx \
--output /reports/trivy-sbom.json \
"${image}"
1 change: 1 addition & 0 deletions bin/trivy-misconfig-dockerfile.bash
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ docker run \
ghcr.io/aquasecurity/trivy:latest \
config \
--config "/repo/configs/${config}" \
--ignorefile /repo/configs/.trivyignore \
"/repo/${dockerfile}"

1 change: 1 addition & 0 deletions configs/.trivyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AVD-DS-0002 # Image user should not be root

0 comments on commit e8500b7

Please sign in to comment.