File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 22
22
type : boolean
23
23
default : false
24
24
25
+ permissions :
26
+ contents : read
27
+
25
28
jobs :
26
29
extract_version :
27
30
runs-on : ubuntu-latest
28
31
outputs :
29
32
version : ${{ steps.get_version.outputs.VERSION }}
33
+ permissions :
34
+ contents : read
30
35
steps :
31
36
- uses : actions/checkout@v4
32
37
- name : Set up Python
61
66
build_wheels :
62
67
name : Build wheel ${{ matrix.python }}-${{ matrix.buildplat[1] }}-${{ matrix.buildplat[2] }}
63
68
runs-on : ${{ matrix.buildplat[0] }}
69
+ permissions :
70
+ contents : read
64
71
if : github.event.inputs.build_type == 'all' || github.event.inputs.build_type == 'wheels'
65
72
strategy :
66
73
fail-fast : false
@@ -117,6 +124,8 @@ jobs:
117
124
build_sdist :
118
125
name : Build sdist
119
126
runs-on : ubuntu-latest
127
+ permissions :
128
+ contents : read
120
129
if : github.event.inputs.build_type == 'all' || github.event.inputs.build_type == 'sdist'
121
130
122
131
steps :
@@ -143,6 +152,8 @@ jobs:
143
152
upload_pypi :
144
153
needs : [build_wheels, build_sdist]
145
154
runs-on : ubuntu-latest
155
+ permissions :
156
+ id-token : write
146
157
if : github.event.inputs.upload_to_pypi == 'true'
147
158
steps :
148
159
- uses : actions/download-artifact@v3
@@ -162,6 +173,8 @@ jobs:
162
173
create_release :
163
174
needs : [extract_version, build_wheels, build_sdist, upload_pypi]
164
175
runs-on : ubuntu-latest
176
+ permissions :
177
+ contents : write
165
178
if : github.event.inputs.create_release == 'true'
166
179
steps :
167
180
- uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments