Skip to content

Commit 8ded1e0

Browse files
committed
Workflows: add build provenance attestation
1 parent b04a156 commit 8ded1e0

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/build-all.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,8 @@ jobs:
746746
- win_x86_v8
747747
permissions:
748748
contents: write # to create releases
749+
id-token: write
750+
attestations: write
749751
steps:
750752
- name: Download artifacts
751753
uses: actions/download-artifact@v4
@@ -785,3 +787,7 @@ jobs:
785787
name: PDFium ${{ github.event.inputs.version }}
786788
tag: ${{ github.event.inputs.branch }}
787789
artifacts: pdfium-*.tgz
790+
- name: Attest build provenance
791+
uses: actions/attest-build-provenance@v3
792+
with:
793+
subject-path: pdfium-*.tgz

.github/workflows/build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ on:
4949
permissions:
5050
contents: read
5151
actions: write
52+
id-token: write
53+
attestations: write
5254

5355
jobs:
5456
build:
@@ -116,10 +118,16 @@ jobs:
116118
run: steps/08-licenses.sh
117119
shell: bash
118120
- name: Upload artifact
121+
id: upload
119122
uses: actions/upload-artifact@v4
120123
with:
121124
name: ${{ steps.init.outputs.artifact }}
122125
path: staging/
126+
- name: Attest build provenance
127+
uses: actions/attest-build-provenance@v3
128+
with:
129+
subject-name: ${{ steps.init.outputs.artifact }}.zip
130+
subject-digest: sha256:${{ steps.upload.outputs.artifact-digest }}
123131
- name: Test
124132
run: steps/09-test.sh
125133
shell: bash

0 commit comments

Comments
 (0)