Skip to content

Commit

Permalink
Add attestation (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
some-natalie authored Jun 17, 2024
1 parent 04bd942 commit a8f6ede
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 @@ -5,7 +5,7 @@ on:
release:
types: [published] # build on release
schedule:
- cron: '45 4 * * 3' # 4:45am on Wednesday UTC
- cron: "45 4 * * 3" # 4:45am on Wednesday UTC

jobs:
build-jekyll:
Expand All @@ -14,6 +14,7 @@ jobs:
packages: write # for uploading the finished container
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
id-token: write # to complete the identity challenge with sigstore/fulcio when running outside of PRs
attestations: write # to create the attestations for the container

steps:
- name: Checkout
Expand All @@ -33,9 +34,18 @@ jobs:
registry: ghcr.io

- name: Build and push
id: push
uses: docker/build-push-action@v6
with:
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/some-natalie/jekyll-in-a-can:latest

- name: Attest the build
uses: actions/attest-build-provenance@v1
id: attest
with:
subject-name: ghcr.io/some-natalie/jekyll-in-a-can
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

0 comments on commit a8f6ede

Please sign in to comment.