Closed iganari closed 3 years ago
- name: 'aquasec/trivy'
entrypoint: sh
args:
- -c
- |
trivy --exit-code=1 --severity=CRITICAL -o /dev/stdout gcr.io/$PROJECT_ID/$_SERVICE_NAME:$COMMIT_SHA
if [ $? != 0 ];then echo "脆弱性を検知しました";exit 1;fi
https://github.com/iganari/package-gcp/pull/92
上記の RP で追加済み
https://tech.recruit-mp.co.jp/infrastructure/continuous-integration-vulnerability-detection-tool-trivy/