File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
content/manuals/scout/integrations/ci Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ stages:
55
55
# Install the Docker Scout CLI
56
56
curl -sSfL https://raw.githubusercontent.com/docker/scout-cli/main/install.sh | sh -s --
57
57
# Login to Docker Hub required for Docker Scout CLI
58
- docker login -u $(DOCKER_HUB_USER) -p $(DOCKER_HUB_PAT)
58
+ echo $(DOCKER_HUB_PAT) | docker login -u $(DOCKER_HUB_USER) --password-stdin
59
59
# Get a CVE report for the built image and fail the pipeline when critical or high CVEs are detected
60
60
docker scout cves $(image):$(tag) --exit-code --only-severity critical,high
61
61
` ` `
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ docker-build:
34
34
apk del curl
35
35
rm -rf /var/cache/apk/*
36
36
# Login to Docker Hub required for Docker Scout CLI
37
- - docker login -u "$DOCKER_HUB_USER" -p "$DOCKER_HUB_PAT"
37
+ - echo "$DOCKER_HUB_PAT" | docker login -u "$DOCKER_HUB_USER" --password-stdin
38
38
` ` `
39
39
40
40
This sets up the workflow to build Docker images with Docker-in-Docker mode,
You can’t perform that action at this time.
0 commit comments