diff --git a/.github/workflows/docker-publish-musl.yml b/.github/workflows/docker-publish-musl.yml index 13baff0..807bda8 100644 --- a/.github/workflows/docker-publish-musl.yml +++ b/.github/workflows/docker-publish-musl.yml @@ -48,14 +48,16 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 + with: + fetch-depth: 1 # Install the cosign tool except on PR # https://github.com/sigstore/cosign-installer - name: Install cosign if: github.event_name != 'pull_request' - uses: sigstore/cosign-installer@6e04d228eb30da1757ee4e1dd75a0ec73a653e06 #v3.1.1 + uses: sigstore/cosign-installer@v3.5.0 with: - cosign-release: 'v2.1.1' + cosign-release: 'v2.2.4' # Setup Docker buildx # https://github.com/docker/setup-buildx-action @@ -111,4 +113,10 @@ jobs: DIGEST: ${{ steps.build-and-push.outputs.digest }} # This step uses the identity token to provision an ephemeral certificate # against the sigstore community Fulcio instance. - run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} +# run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} + run: | + images="" + for tag in ${TAGS}; do + images+="${tag}@${DIGEST} " + done + cosign sign --yes ${images} \ No newline at end of file