diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 27eb019e6..3250427f3 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -42,6 +42,7 @@ jobs: contents: read packages: write id-token: write + attestations: write steps: - name: Checkout repository @@ -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 }}