From 9462b52e2b44a73c3ff2476145536633ee517378 Mon Sep 17 00:00:00 2001 From: Meredith Lancaster Date: Tue, 4 Jun 2024 09:09:38 -0600 Subject: [PATCH] redirect digest output to stdout Signed-off-by: Meredith Lancaster --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 222af47..046215e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,7 +40,7 @@ jobs: run: | # helm show chart prints the digest to stderr, so redirect stderr and # extract the digest from the output - digest=$(helm show chart oci://${{ env.REGISTRY }}/${{ github.repository }}/${{ steps.release-details.outputs.chart_name }} --version ${{ steps.release-details.outputs.chart_version }} | grep "^Digest" | sed 's/^Digest: //') + digest=$(helm show chart oci://${{ env.REGISTRY }}/${{ github.repository }}/${{ steps.release-details.outputs.chart_name }} --version ${{ steps.release-details.outputs.chart_version }} 2>&1 | grep "^Digest" | sed 's/^Digest: //') echo digest=$digest >> $GITHUB_OUTPUT - name: Attest uses: actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2