Skip to content

Commit ffa1d76

Browse files
committed
chore: update trivy mirrors to public.ecr.aws and fix utf8 bom
1 parent 21c9312 commit ffa1d76

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ repos:
787787
- id: trivy
788788
name: trivy security scan
789789
language: system
790-
entry: bash -c 'if command -v trivy >/dev/null 2>&1; then exec trivy fs . --scanners vuln,misconfig,secret --db-repository ghcr.io/aquasecurity/trivy-db:2 --java-db-repository ghcr.io/aquasecurity/trivy-java-db:1 --checks-bundle-repository ghcr.io/aquasecurity/trivy-checks:1 --timeout 15m --exit-code 1 --severity HIGH,CRITICAL "$@"; else echo "Skipped trivy not found"; fi' --
790+
entry: bash -c 'if command -v trivy >/dev/null 2>&1; then exec trivy fs . --scanners vuln,misconfig,secret --db-repository public.ecr.aws/aquasecurity/trivy-db --java-db-repository public.ecr.aws/aquasecurity/trivy-java-db:1 --checks-bundle-repository public.ecr.aws/aquasecurity/trivy-checks --timeout 15m --exit-code 1 --severity HIGH,CRITICAL "$@"; else echo "Skipped trivy not found"; fi' --
791791
always_run: true
792792
pass_filenames: false
793793
description: "Comprehensive security scan for vulnerabilities, misconfigurations, and secrets using Trivy."

0 commit comments

Comments
 (0)