Use --scanners instead of --security-checks

This commit is contained in:
niusmallnan
2023-03-20 11:24:18 +08:00
parent 3810cd702f
commit bfae192748

View File

@@ -99,7 +99,7 @@ steps:
- name: image-scan-head - name: image-scan-head
image: aquasec/trivy image: aquasec/trivy
commands: commands:
- trivy image --no-progress --ignore-unfixed --severity HIGH,CRITICAL --security-checks vuln --exit-code 1 cnrancher/kube-explorer:head-linux-amd64 - trivy image --no-progress --ignore-unfixed --severity HIGH,CRITICAL --scanners vuln --exit-code 1 cnrancher/kube-explorer:head-linux-amd64
volumes: volumes:
- name: docker - name: docker
path: /var/run/docker.sock path: /var/run/docker.sock