From ccc2dfacbfd21264b2cfc91b2ac6b69499f55ed3 Mon Sep 17 00:00:00 2001 From: Alex Lovell-Troy Date: Wed, 17 Jan 2024 13:40:17 -0500 Subject: [PATCH] Trying a find command to get the first non-null Digest --- .github/workflows/go.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 4f5abe3..e338302 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -39,9 +39,10 @@ jobs: with: version: latest args: release --clean + id: goreleaser - name: generate build provenance uses: github-early-access/generate-build-provenance@main with: subject-name: ghcr.io/openchami/ochami-init - subject-digest: ${{ steps.push.outputs.digest }} + subject-digest: ${{ fromJson(steps.goreleaser.outputs.artifacts).find(artifact => artifact.extra.Digest != null).extra.Digest }} push-to-registry: true