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