Skip to content

Commit

Permalink
Attest docker build (#5)
Browse files Browse the repository at this point in the history
* Attest docker build

* whoops
  • Loading branch information
m1guelpf authored Oct 8, 2024
1 parent 63d99c2 commit 7ed95de
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
permissions:
contents: read
packages: write
id-token: write
attestations: write

jobs:
docker:
Expand Down Expand Up @@ -50,6 +52,14 @@ jobs:
build-args: |
SQLX_OFFLINE: true
env:
SQLX_OFFLINE: true
DOCKER_BUILD_SUMMARY: false
DOCKER_BUILD_RECORD_UPLOAD: false
SQLX_OFFLINE: true

- name: Attest
id: attest
uses: actions/attest-build-provenance@v1
with:
push-to-registry: true
subject-name: ghcr.io/${{ github.repository }}
subject-digest: ${{ steps.docker_build.outputs.digest }}

0 comments on commit 7ed95de

Please sign in to comment.