Browse Source

add-grype

pull/29/head
fedy95 4 years ago
parent
commit
bf5137d673
  1. 6
      .drone.yml

6
.drone.yml

@ -55,8 +55,10 @@ steps:
commands:
- apk add --no-cache curl
- curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b /usr/local/bin
- "grype $REGISTRY/baseimage-yamllint:$DRONE_COMMIT_SHA --help"
- "grype $REGISTRY/baseimage-yamllint:$DRONE_COMMIT_SHA --scope all-layers --fail-on=critical"
- "grype $REGISTRY/baseimage-yamllint:$DRONE_COMMIT_SHA \
--scope all-layers \
--fail-on=critical \
--verbose"
when:
event: pull_request