Skip to content

Commit ed31785

Browse files
committed
Workflows: add build provenance attestation
1 parent 8780f15 commit ed31785

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/build-all.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Build all
33
permissions:
44
contents: read
55
actions: write
6+
id-token: write
7+
attestations: write
68

79
on:
810
workflow_dispatch:
@@ -783,3 +785,7 @@ jobs:
783785
name: PDFium ${{ github.event.inputs.version }}
784786
tag: ${{ github.event.inputs.branch }}
785787
artifacts: pdfium-*.tgz
788+
- name: Attest
789+
uses: actions/attest-build-provenance@v3
790+
with:
791+
subject-path: pdfium-*.tgz

.github/workflows/build.yml

Lines changed: 7 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,15 @@ 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+
- uses: actions/attest-build-provenance@v3
127+
with:
128+
subject-name: ${{ steps.init.outputs.artifact }}.zip
129+
subject-digest: sha256:${{ steps.upload.outputs.artifact-digest }}
123130
- name: Test
124131
run: steps/09-test.sh
125132
shell: bash

0 commit comments

Comments
 (0)