Skip to content

Commit 9b5a468

Browse files
committed
update Docker login command to use --password-stdin for improved security
1 parent f5ce9a7 commit 9b5a468

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/continuous-integration-workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
-
1717
name: Login to Red Hat Registry
1818
run: |
19-
docker login -u ${{ secrets.REDHAT_REGISTRY_USERNAME }} -p ${{ secrets.REDHAT_REGISTRY_PASSWORD }} registry.redhat.io
19+
echo "${{ secrets.REDHAT_REGISTRY_PASSWORD }}" | docker login -u ${{ secrets.REDHAT_REGISTRY_USERNAME }} --password-stdin registry.redhat.io
2020
-
2121
name: Build UBI9 docker image
2222
run: |
@@ -35,7 +35,7 @@ jobs:
3535
-
3636
name: Login to Red Hat Registry
3737
run: |
38-
docker login -u ${{ secrets.REDHAT_REGISTRY_USERNAME }} -p ${{ secrets.REDHAT_REGISTRY_PASSWORD }} registry.redhat.io
38+
echo "${{ secrets.REDHAT_REGISTRY_PASSWORD }}" | docker login -u ${{ secrets.REDHAT_REGISTRY_USERNAME }} --password-stdin registry.redhat.io
3939
- name: Build UBI9 docker image
4040
run: |
4141
./.github/workflows/build-docker-image.sh \

0 commit comments

Comments
 (0)