Skip to content

Commit

Permalink
πŸ‘ syft sbom πŸ‘
Browse files Browse the repository at this point in the history
  • Loading branch information
eformat committed May 31, 2023
1 parent dae8a75 commit 87eeb62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,16 @@ jobs:
# Provenance SBOM and attestation
- name: Generate SBOM
uses: anchore/sbom-action@v0
id: syft
with:
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAGS }}
registry-username: ${{ secrets.QUAY_USER }}
registry-password: ${{ secrets.QUAY_TOKEN }}
artifact-name: pet-battle-api.sbom
output-file: /tmp

- name: Attach SBOM to image
run: |
cosign attach sbom --sbom ${{ steps.syft.output-file }}/pet-battle-api.sbom \
cosign attach sbom --sbom /tmp/pet-battle-api.sbom \
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAGS }}
env:
COSIGN_PASSWORD: ""
Expand Down

0 comments on commit 87eeb62

Please sign in to comment.