Skip to content

Commit

Permalink
add support for second java db repository in trivy checks
Browse files Browse the repository at this point in the history
  • Loading branch information
s4ke committed Oct 30, 2024
1 parent 113c240 commit d2afdea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion consumer_gateway/build_production.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ docker run \
--scanners vuln \
--ignore-unfixed \
--exit-code 1 \
--java-db-repository ghcr.io/aquasecurity/trivy-java-db public.ecr.aws/aquasecurity/trivy-java-db \
--java-db-repository ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db \
ghcr.io/neuroforgede/nfcompose-consumer-gateway:${BUILD_NF_COMPOSE_DOCKER_TAG}
check_result "failed trivy check"
3 changes: 1 addition & 2 deletions skipper/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,7 @@ def trivy_check(image: str) -> None:
'trivy',
'image',
'--java-db-repository',
'ghcr.io/aquasecurity/trivy-java-db',
'public.ecr.aws/aquasecurity/trivy-java-db',
'ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db',
'--ignore-unfixed',
'--skip-files',
'/neuroforge/skipper/skipper/environment_local.py',
Expand Down
2 changes: 1 addition & 1 deletion skipper_proxy/build_production.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ docker run \
--scanners vuln \
--ignore-unfixed \
--exit-code 1 \
--java-db-repository ghcr.io/aquasecurity/trivy-java-db public.ecr.aws/aquasecurity/trivy-java-db \
--java-db-repository ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db \
ghcr.io/neuroforgede/nfcompose-skipper-proxy:${BUILD_NF_COMPOSE_DOCKER_TAG}
check_result "failed trivy check"

0 comments on commit d2afdea

Please sign in to comment.