Skip to content

Commit

Permalink
ci(release): modify sbom artifact name
Browse files Browse the repository at this point in the history
Signed-off-by: r3drun3 <[email protected]>
  • Loading branch information
R3DRUN3 committed Feb 13, 2024
1 parent a80b26d commit 0881c3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
uses: anchore/sbom-action@v0
with:
image: ghcr.io/${{ steps.lowercase.outputs.name }}:${{ steps.tagger.outputs.version-without-v }}
artifact-name: ${{ steps.lowercase.outputs.name }}.spdx.json
artifact-name: sbom.spdx.json

- name: Sign image with Cosign
run: |
Expand All @@ -78,7 +78,7 @@ jobs:
- name: Attest the Image with SBOM
run: |
ls -lah /tmp
SBOM_FILE=$(find /tmp/sbom-action-* -name "*${{ steps.lowercase.outputs.name }}-${{ steps.tagger.outputs.version-without-v }}.spdx.json*.spdx.json" -type f)
SBOM_FILE=$(find /tmp/sbom-action-* -name "sbom.spdx.json" -type f)
echo "${SBOM_FILE}"
if [ -z "$SBOM_FILE" ]; then
echo "Error: .spdx file not found"
Expand Down

0 comments on commit 0881c3f

Please sign in to comment.