From 88e567892f891d54e84350502e7f4fb1f94d86c9 Mon Sep 17 00:00:00 2001 From: Robert Sturla Date: Fri, 6 Sep 2024 10:48:00 +0100 Subject: [PATCH] fix: login to GHCR before signing --- .github/workflows/build-40.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-40.yaml b/.github/workflows/build-40.yaml index c19a963..056c1b5 100644 --- a/.github/workflows/build-40.yaml +++ b/.github/workflows/build-40.yaml @@ -80,6 +80,14 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} # Sign container + - name: Login to GitHub Container Registry + uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3 + if: github.event_name != 'pull_request' + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - uses: sigstore/cosign-installer@4959ce089c160fddf62f7b42464195ba1a56d382 # v3.6.0 if: github.event_name != 'pull_request'