Skip to content

Commit

Permalink
Generate an SBOM signature
Browse files Browse the repository at this point in the history
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
  • Loading branch information
egibs committed Jun 9, 2024
1 parent 6ea7c57 commit c78ee0f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,20 @@ jobs:
set -euo pipefail
echo "hashes=$(sha256sum ./rsd | base64 -w0)" >> "$GITHUB_OUTPUT"
- name: Generate SBOM via Syft
id: sbom
uses: anchore/sbom-action@e8d2a6937ecead383dfe75190d104edd1f9c5751
with:
output-file: ${{ github.workspace }}/rsd-sbom.spdx
- name: Generate SBOM signature
id: sbom_signature
run: |
set -euo pipefail
echo "sbom_signature=$(sha256sum ${{ github.workspace }}/rsd-sbom.spdx | base64 -w0)" >> "$GITHUB_OUTPUT"
- name: Upload SBOM signature to release
run: |
set -euo pipefail
echo ${{ steps.sbom_signature.outputs.sbom_signature }} > rsd-sbom.sig
gh release upload ${{ github.ref_name }} rsd-sbom.sig
provenance:
needs:
- build
Expand Down

0 comments on commit c78ee0f

Please sign in to comment.