From 38a2760a8457e13119147b79578fe0c6ab375c6b Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Tue, 26 Nov 2024 10:34:27 +0100 Subject: [PATCH] scout: use --password-stdin in docker login examples for integrations Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- content/manuals/scout/integrations/ci/azure.md | 2 +- content/manuals/scout/integrations/ci/gitlab.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/manuals/scout/integrations/ci/azure.md b/content/manuals/scout/integrations/ci/azure.md index 5b017cc6a2..b58e7fb1da 100644 --- a/content/manuals/scout/integrations/ci/azure.md +++ b/content/manuals/scout/integrations/ci/azure.md @@ -55,7 +55,7 @@ stages: # Install the Docker Scout CLI curl -sSfL https://raw.githubusercontent.com/docker/scout-cli/main/install.sh | sh -s -- # Login to Docker Hub required for Docker Scout CLI - docker login -u $(DOCKER_HUB_USER) -p $(DOCKER_HUB_PAT) + echo $(DOCKER_HUB_PAT) | docker login -u $(DOCKER_HUB_USER) --password-stdin # Get a CVE report for the built image and fail the pipeline when critical or high CVEs are detected docker scout cves $(image):$(tag) --exit-code --only-severity critical,high ``` diff --git a/content/manuals/scout/integrations/ci/gitlab.md b/content/manuals/scout/integrations/ci/gitlab.md index 61f6dcecac..0887d3540a 100644 --- a/content/manuals/scout/integrations/ci/gitlab.md +++ b/content/manuals/scout/integrations/ci/gitlab.md @@ -34,7 +34,7 @@ docker-build: apk del curl rm -rf /var/cache/apk/* # Login to Docker Hub required for Docker Scout CLI - - docker login -u "$DOCKER_HUB_USER" -p "$DOCKER_HUB_PAT" + - echo "$DOCKER_HUB_PAT" | docker login -u "$DOCKER_HUB_USER" --password-stdin ``` This sets up the workflow to build Docker images with Docker-in-Docker mode,