diff --git a/.github/workflows/build-and-sign-image.yml b/.github/workflows/build-and-sign-image.yml index b32721e..c4c9cf7 100644 --- a/.github/workflows/build-and-sign-image.yml +++ b/.github/workflows/build-and-sign-image.yml @@ -8,6 +8,9 @@ on: - closed branches: - "main" + push: + branches: + - "iss-20-add-sbom" env: REGISTRY: ghcr.io @@ -27,6 +30,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - uses: anchore/sbom-action@v0 + with: + image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + registry-username: ${{ github.actor }} + registry-password: ${{ secrets.GITHUB_TOKEN }} + - name: Install cosign uses: sigstore/cosign-installer@9614fae9e5c5eddabb09f90a270fcb487c9f7149 #v3.0.2 with: