Skip to content

Commit

Permalink
chore: adds sbom to docker images #523 (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan authored Aug 20, 2024
1 parent 5aaddb6 commit 7a9d858
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
contents: read
packages: write
id-token: write
attestations: write

steps:
- name: Checkout repository
Expand Down Expand Up @@ -89,10 +90,12 @@ jobs:
# https://github.com/docker/build-push-action
- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile
sbom: true
provenance: mode=max
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down

0 comments on commit 7a9d858

Please sign in to comment.