From ccd32d68b61c1fe7cc484ae2edb641eceab615cf Mon Sep 17 00:00:00 2001 From: Daniel Redman <43892709+djredman99@users.noreply.github.com> Date: Fri, 1 Nov 2024 22:22:14 -0400 Subject: [PATCH] adding step summary and validation --- .github/workflows/14-build-attestations.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/14-build-attestations.yml b/.github/workflows/14-build-attestations.yml index b34c701..8123ba2 100644 --- a/.github/workflows/14-build-attestations.yml +++ b/.github/workflows/14-build-attestations.yml @@ -45,4 +45,17 @@ jobs: with: # Specify the path to the folder you want to attest subject-path: staging/MyClassLibrary.dll + + # Lets validate the attestation + - name: Validate Attestation + id: validate + run: gh attestation verify staging/MyClassLibrary.dll -R djredman99/githhub-intro-to-actions-demos + + - name: Output Attestation + if: steps.validate.outcome == 'success' + run: echo "The attestation is VERIFIED" >> GITHUB_STEP_SUMMARY + + - name: Output Attestation FAILED + if: steps.validate.outcome == 'failure' + run: echo "The attestation is NOT VERIFIED" >> GITHUB_STEP_SUMMARY \ No newline at end of file