Skip to content

Commit

Permalink
Update push-dockerhub.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Marukome0743 authored Nov 20, 2023
1 parent a689b01 commit 4338329
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/push-dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit 4338329

Please sign in to comment.