From 4338329709aae92894b1724333adae498b7c5ebd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AB=E3=82=B3=E3=83=A1?= <146040408+Marukome0743@users.noreply.github.com> Date: Mon, 20 Nov 2023 09:06:38 +0900 Subject: [PATCH] Update push-dockerhub.yml --- .github/workflows/push-dockerhub.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push-dockerhub.yml b/.github/workflows/push-dockerhub.yml index f297db0..9110d1e 100644 --- a/.github/workflows/push-dockerhub.yml +++ b/.github/workflows/push-dockerhub.yml @@ -38,6 +38,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Login to Docker Hub + if: ${{ secrets.DOCKER_USER != "" && secrets.DOCKER_PAT != "" }} uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USER }} @@ -61,7 +62,7 @@ jobs: provenance: false - name: Docker Scout - if: ${{ github.event_name == 'pull_request' }} + if: ${{ github.event_name == 'pull_request' && secrets.DOCKER_USER != "" && secrets.DOCKER_PAT != "" }} uses: docker/scout-action@v1 with: command: cves,recommendations,compare