Skip to content

Commit f0aa475

Browse files
committed
ci: implement SLSA build provenance using actions/attest@v4
1 parent b4033c7 commit f0aa475

1 file changed

Lines changed: 21 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ name: Package Application
22

33
on: [push]
44
permissions:
5-
id-token: "write"
6-
contents: "write"
7-
packages: "write"
8-
pull-requests: "read"
5+
id-token: write
6+
contents: write
7+
packages: write
8+
pull-requests: read
9+
attestations: write
10+
artifact-metadata: write
911

1012
jobs:
1113
win-pyinstaller:
@@ -69,6 +71,11 @@ jobs:
6971
--exclude-module PySide6.QtUiTools
7072
run.py
7173
74+
- name: Attest build provenance
75+
uses: actions/attest@v4
76+
with:
77+
subject-path: dist/main.exe
78+
7279
- name: Upload package
7380
uses: actions/upload-artifact@v7
7481
with:
@@ -107,6 +114,11 @@ jobs:
107114
output-file: main.exe
108115
disable-cache: true
109116

117+
- name: Attest build provenance
118+
uses: actions/attest@v4
119+
with:
120+
subject-path: build/main.exe
121+
110122
- name: Upload package
111123
uses: actions/upload-artifact@v7
112124
with:
@@ -180,6 +192,11 @@ jobs:
180192
cd dist
181193
zip -r9 checker.zip main.app/
182194
195+
- name: Attest build provenance
196+
uses: actions/attest@v4
197+
with:
198+
subject-path: dist/checker.zip
199+
183200
- name: Upload package
184201
uses: actions/upload-artifact@v7
185202
with:

0 commit comments

Comments
 (0)