Skip to content

Commit

Permalink
Add anchore/sbom-action
Browse files Browse the repository at this point in the history
  • Loading branch information
ciroque committed Dec 27, 2023
1 parent 7cc898e commit aeceaf7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build-and-sign-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ on:
- closed
branches:
- "main"
push:
branches:
- "iss-20-add-sbom"

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build_and_sign_image:
if: ${{ github.event.pull_request.merged }}
# if: ${{ github.event.pull_request.merged }}
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -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:
Expand Down

0 comments on commit aeceaf7

Please sign in to comment.