Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
geomag-algorithms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ghsc
National Geomagnetism Program
geomag-algorithms
Commits
94bfb207
Commit
94bfb207
authored
4 months ago
by
Shavers, Nicholas H
Browse files
Options
Downloads
Patches
Plain Diff
use trivy mirror fofr 0 rate limiting
parent
e8356e58
No related branches found
No related tags found
1 merge request
!358
use trivy mirror for 0 rate limiting
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+1
-1
1 addition, 1 deletion
.gitlab-ci.yml
with
1 addition
and
1 deletion
.gitlab-ci.yml
+
1
−
1
View file @
94bfb207
...
...
@@ -204,8 +204,8 @@ Build Docker Image:
--build-arg GIT_COMMIT_SHA=${CI_COMMIT_SHA}
--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
# fail LOW,MEDIUM vulnerabilities that have a fix available
-
trivy image --exit-code 1 --ignore-unfixed --severity LOW,MEDIUM "${LOCAL_IMAGE}";
# fail HIGH,CRITICAL vulnerabilities
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment