Skip to content

Commit adab458

Browse files
authored
Merge pull request #21503 from dvdksn/scout-update-login-syntax
scout: use --password-stdin in docker login examples for integrations
2 parents a80da43 + 38a2760 commit adab458

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

content/manuals/scout/integrations/ci/azure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ stages:
5555
# Install the Docker Scout CLI
5656
curl -sSfL https://raw.githubusercontent.com/docker/scout-cli/main/install.sh | sh -s --
5757
# 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
5959
# Get a CVE report for the built image and fail the pipeline when critical or high CVEs are detected
6060
docker scout cves $(image):$(tag) --exit-code --only-severity critical,high
6161
```

content/manuals/scout/integrations/ci/gitlab.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ docker-build:
3434
apk del curl
3535
rm -rf /var/cache/apk/*
3636
# 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
3838
```
3939
4040
This sets up the workflow to build Docker images with Docker-in-Docker mode,

0 commit comments

Comments
 (0)