Skip to content

Commit

Permalink
feat(docker): generate SBOM/provenance for the Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Apr 3, 2023
1 parent ed389b7 commit 2ef259e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,16 @@ jobs:
builder: ${{ steps.buildx.outputs.name }}
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
sbom: true
provenance: true
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

- name: Scan the image
uses: anchore/sbom-action@v0
with:
image: ghcr.io/${{ github.repository_owner }}/git-cliff/git-cliff

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit 2ef259e

Please sign in to comment.