Browse Source

add-grype

pull/29/head
fedy95 4 years ago
parent
commit
9a4530d767
  1. 31
      .drone.yml

31
.drone.yml

@ -8,7 +8,6 @@ volumes:
- name: dockersock
host:
path: /var/run/docker.sock
temp: {}
steps:
- name: lint yaml
@ -30,21 +29,21 @@ steps:
when:
event: pull_request
- name: trivy security check
image: aquasec/trivy
volumes:
- name: dockersock
path: /var/run/docker.sock
environment:
REGISTRY: registry.fedy95.com
commands:
- "trivy \
--exit-code 1 \
--format json \
--no-progress \
$REGISTRY/baseimage-yamllint:$DRONE_COMMIT_SHA"
when:
event: pull_request
# - name: trivy security check
# image: aquasec/trivy
# volumes:
# - name: dockersock
# path: /var/run/docker.sock
# environment:
# REGISTRY: registry.fedy95.com
# commands:
# - "trivy \
# --exit-code 1 \
# --format json \
# --no-progress \
# $REGISTRY/baseimage-yamllint:$DRONE_COMMIT_SHA"
# when:
# event: pull_request
- name: grype security check
image: anchore/grype