Skip to content

Commit

Permalink
fix typo in example of .gitlab-ci.yml (aquasecurity#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
aruneko authored and knqyf263 committed Jan 17, 2020
1 parent 8888fca commit 4a7fb52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1269,11 +1269,11 @@ trivy:
# Build image
- docker build -t trivy-ci-test:$CI_COMMIT_SHA .
# Build report
- ./trivy --exit-code 0 --cache-dir $CI_PROJECT_DIR/.trivycache/ --no-progress --format template --template "@contrib/gitlab.tpl"-o ${CI_PROJECT_DIR}/gl-container-scanning-report.json trivy-ci-test:$CI_COMMIT_SHA
- ./trivy --exit-code 0 --cache-dir $CI_PROJECT_DIR/.trivycache/ --no-progress --format template --template "@contrib/gitlab.tpl" -o ${CI_PROJECT_DIR}/gl-container-scanning-report.json trivy-ci-test:$CI_COMMIT_SHA
# Print report
- ./trivy --exit-code 0 --cache-dir $CI_PROJECT_DIR/.trivycache/ --no-progress --severity HIGH trivy-ci-test:$CI_COMMIT_SHA
# Fail on high and critical vulnerabilities
- ./trivy --exit-code 1 --cache-dir $CI_PROJECT_DIR/.trivycache/ --severity CRITICAL --no-progress trivy-ci-test:$CI_COMMIT_SHA
- ./trivy --exit-code 1 --cache-dir $CI_PROJECT_DIR/.trivycache/ --severity CRITICAL --no-progress trivy-ci-test:$CI_COMMIT_SHA
cache:
paths:
- $CI_PROJECT_DIR/.trivycache/

0 comments on commit 4a7fb52

Please sign in to comment.