File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,12 @@ jobs:
201
201
runner : macos-13
202
202
py : ' cpython-3.13'
203
203
options : ' freethreaded+pgo+lto'
204
+
205
+ permissions :
206
+ id-token : write
207
+ contents : read
208
+ attestations : write
209
+
204
210
needs :
205
211
- pythonbuild
206
212
runs-on : ${{ matrix.build.runner }}
@@ -233,6 +239,11 @@ jobs:
233
239
234
240
./build-macos.py --target-triple ${{ matrix.build.target_triple }} --python ${{ matrix.build.py }} --options ${{ matrix.build.options }}
235
241
242
+ - name : Generate artifact attestation
243
+ uses : actions/attest-build-provenance@v1
244
+ with :
245
+ subject-path : dist/*
246
+
236
247
- name : Upload Distributions
237
248
uses : actions/upload-artifact@v4
238
249
with :
Original file line number Diff line number Diff line change @@ -803,6 +803,11 @@ jobs:
803
803
py : ' cpython-3.12'
804
804
options : ' lto'
805
805
806
+ permissions :
807
+ id-token : write
808
+ contents : read
809
+ attestations : write
810
+
806
811
needs :
807
812
- pythonbuild
808
813
- image
@@ -861,6 +866,11 @@ jobs:
861
866
fi
862
867
863
868
build/pythonbuild validate-distribution ${EXTRA_ARGS} dist/*.tar.zst
869
+
870
+ - name : Generate artifact attestation
871
+ uses : actions/attest-build-provenance@v1
872
+ with :
873
+ subject-path : dist/*
864
874
865
875
- name : Upload Distribution
866
876
uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change 63
63
vcvars : ' vcvars64.bat'
64
64
options : ' freethreaded+pgo'
65
65
66
+ permissions :
67
+ id-token : write
68
+ contents : read
69
+ attestations : write
70
+
66
71
needs : pythonbuild
67
72
runs-on : ' windows-2019'
68
73
steps :
@@ -101,6 +106,11 @@ jobs:
101
106
run : |
102
107
$Dists = Resolve-Path -Path "dist/*.tar.zst" -Relative
103
108
.\pythonbuild.exe validate-distribution --run $Dists
109
+
110
+ - name : Generate artifact attestation
111
+ uses : actions/attest-build-provenance@v1
112
+ with :
113
+ subject-path : dist/*
104
114
105
115
- name : Upload Distributions
106
116
uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments