Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/build-provenance.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build provenance

on:
workflow_call:
inputs:
subject-checksums:
description: Subject checksums to attest; contents of a checksums file.
type: string
required: true

permissions: {}

jobs:
attest-build-provenance:
name: Attest build provenance
runs-on: ubuntu-latest
permissions:
attestations: write # to persist
id-token: write # to sign
steps:
- name: Write subject checksums to a file
run: printf %s "${{ inputs.subject-checksums }}" >subject-checksums.txt
- uses: actions/attest-build-provenance@00014ed6ed5efc5b1ab7f7f34a39eb55d41aa4f8 # v3.1.0
with:
subject-checksums: subject-checksums.txt