Skip to content

Commit

Permalink
don't use repository in image name so that scan uses locally built image
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed Oct 21, 2023
1 parent 474df3c commit 7a41ef9
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/docker-scout-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@ jobs:
- name: Setup Docker buildx
uses: docker/setup-buildx-action@79abd3f86f79a9d68a23c75a09a9a85889262adf

# Login against GHCR Docker registry except on PR
# https://github.com/docker/login-action
- name: Log into GHCR registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# # Login against GHCR Docker registry except on PR
# # https://github.com/docker/login-action
# - name: Log into GHCR registry ${{ env.REGISTRY }}
# if: github.event_name != 'pull_request'
# uses: docker/login-action@28218f9b04b4f3f62068d7b6ce6ca5b26e35336c
# with:
# registry: ${{ env.REGISTRY }}
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}

# Login against Docker Hub to allow running Docker Scout (except on PR)
# Login against Docker Hub to allow running Docker Scout
# https://github.com/docker/login-action
- name: Log into Docker Hub registry
# if: github.event_name != 'pull_request'
Expand All @@ -77,12 +77,12 @@ jobs:
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: ${{ env.IMAGE_NAME }}
tags: |
type=ref,event=pr
type=ref,event=branch,suffix=-${{github.run_number}}
# Build and push Docker image with Buildx (don't push on PR)
# Build Docker image with Buildx (don't push)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
Expand Down

0 comments on commit 7a41ef9

Please sign in to comment.