mirror of
https://github.com/docker/docs.git
synced 2026-04-12 06:19:22 +07:00
@@ -22,11 +22,11 @@ stage('Analyze image') {
|
||||
sh 'echo $DOCKER_HUB_PAT | docker login -u $DOCKER_HUB_USER --password-stdin'
|
||||
|
||||
// Analyze and fail on critical or high vulnerabilities
|
||||
sh 'docker-scout cves $IMAGE_TAG --exit-code --only-serverity critical,high'
|
||||
sh 'docker-scout cves $IMAGE_TAG --exit-code --only-severity critical,high'
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
This installs Docker Scout, logs into Docker Hub, and then runs Docker Scout to
|
||||
generate a CVE report for an image and tag. It only shows critical or
|
||||
high-severity vulnerabilities.
|
||||
high-severity vulnerabilities.
|
||||
|
||||
Reference in New Issue
Block a user