Skip to content

Commit 71cad97

Browse files
committed
ci: add artifact attestations
1 parent ba74ff6 commit 71cad97

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
jobs:
1414
build:
1515
runs-on: macos-15
16+
permissions:
17+
contents: read
18+
id-token: write
19+
attestations: write
1620
steps:
1721
- name: Checkout
1822
uses: actions/checkout@v4
@@ -42,9 +46,17 @@ jobs:
4246
MACOSX_DEPLOYMENT_TARGET: 15.4
4347

4448
- name: Upload Artifact
49+
id: upload
4550
uses: actions/upload-artifact@v4
4651
with:
4752
name: mpv-macos-15-arm64
4853
path: mpv.tar.gz
54+
if-no-files-found: error
4955
compression-level: 0
5056
overwrite: true
57+
58+
- name: Attest Artifact
59+
uses: actions/attest-build-provenance@v2
60+
with:
61+
subject-name: mpv-macos-15-arm64.zip
62+
subject-digest: sha256:${{ steps.upload.outputs.artifact-digest }}

0 commit comments

Comments
 (0)