From ffc1d340d109d7e1849a61609c4c2c0fe2f83ff1 Mon Sep 17 00:00:00 2001 From: Sam Clark <1059176+samhclark@users.noreply.github.com> Date: Sat, 21 Sep 2024 19:47:11 -0500 Subject: [PATCH] Use Docker login step before trying to push sigs --- .github/workflows/build.yaml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 320b96e..4ea37fe 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -55,18 +55,18 @@ jobs: extra-args: | --disable-content-trust - # - name: Login to GitHub Container Registry - # uses: docker/login-action@v3 - # if: github.event_name != 'pull_request' - # with: - # registry: ghcr.io - # username: ${{ github.actor }} - # password: ${{ secrets.GITHUB_TOKEN }} - - - name: Copy Podman login to Docker location for Cosign + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 if: github.event_name != 'pull_request' - run: | - cat /run/containers/0/auth.json > ~/.docker/config.json + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + # - name: Copy Podman login to Docker location for Cosign + # if: github.event_name != 'pull_request' + # run: | + # cat /run/containers/0/auth.json > ~/.docker/config.json - name: Sign the published OCI image if: ${{ github.event_name != 'pull_request' }}