Skip to content
Snippets Groups Projects
Commit 87b6f27c authored by Shavers, Nicholas H's avatar Shavers, Nicholas H
Browse files

quiet trivy, backup trivy repositories. dind updated to 27

parent bb7b8813
No related branches found
No related tags found
1 merge request!374Final trivy updates
......@@ -89,10 +89,10 @@ workflow:
# template for jobs that need docker-in-docker
.dind:
image: code.usgs.gov:5001/devops/images/usgs/docker:20
image: code.usgs.gov:5001/devops/images/usgs/docker:27
services:
- alias: docker
name: code.usgs.gov:5001/devops/images/usgs/docker:20-dind
name: code.usgs.gov:5001/devops/images/usgs/docker:27-dind
variables:
DOCKER_DRIVER: overlay2
......@@ -202,11 +202,11 @@ Build Docker Image:
--tag "${LOCAL_IMAGE}"
"."
## trivy scan before push
- export TRIVY_DB_REPOSITORY=mirror.gcr.io/aquasec/trivy-db #Trivy looks for this variable to determine which repository to use. Only one allowed until trivy >= 0.56
- export TRIVY_DB_REPOSITORY=public.ecr.aws/aquasecurity/trivy-db,aquasec/trivy-db,ghcr.io/aquasecurity/trivy-db, mirror.gcr.io/aquasec/trivy-db #Trivy looks for this variable to determine which repository to use.
# fail LOW,MEDIUM vulnerabilities that have a fix available
- trivy image --exit-code 1 --ignore-unfixed --severity LOW,MEDIUM "${LOCAL_IMAGE}";
- trivy -q image --exit-code 1 --ignore-unfixed --severity LOW,MEDIUM "${LOCAL_IMAGE}";
# fail HIGH,CRITICAL vulnerabilities
- trivy image --exit-code 1 --severity HIGH,CRITICAL "${LOCAL_IMAGE}";
- trivy -q image --exit-code 1 --severity HIGH,CRITICAL "${LOCAL_IMAGE}";
## Authentication for Docker-in-Docker
# make folder for docker and docker configs if not present
- mkdir -p $HOME/.docker
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment