File tree Expand file tree Collapse file tree 7 files changed +44
-0
lines changed Expand file tree Collapse file tree 7 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 17
17
run :
18
18
working-directory : ${{ inputs.working-directory }}
19
19
runs-on : ubuntu-latest
20
+ permissions :
21
+ contents : read
22
+ actions : write # Needed for actions/cache used by poetry_setup action
20
23
strategy :
21
24
matrix :
22
25
python-version :
Original file line number Diff line number Diff line change 35
35
run :
36
36
working-directory : ${{ inputs.working-directory }}
37
37
runs-on : ubuntu-latest
38
+ permissions :
39
+ contents : read
40
+ id-token : write # Needed for aws-actions/configure-aws-credentials
41
+ actions : write # Needed for actions/cache used by poetry_setup action
38
42
name : " make integration_test"
39
43
steps :
40
44
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change 19
19
build :
20
20
name : " make lint #${{ matrix.python-version }}"
21
21
runs-on : ubuntu-latest
22
+ permissions :
23
+ contents : read
24
+ actions : write # Needed for actions/cache used by poetry_setup action (and directly in this job)
22
25
strategy :
23
26
matrix :
24
27
# Only lint on the min and max supported Python versions.
Original file line number Diff line number Diff line change 25
25
PYTHON_VERSION : " 3.11"
26
26
POETRY_VERSION : " 1.7.1"
27
27
28
+ permissions :
29
+ contents : read
30
+
28
31
jobs :
29
32
build :
30
33
if : github.ref == 'refs/heads/main' || inputs.dangerous-nonmaster-release
31
34
runs-on : ubuntu-latest
35
+ permissions :
36
+ contents : read
37
+ actions : write # Needed for actions/upload-artifact
32
38
33
39
outputs :
34
40
pkg-name : ${{ steps.check-version.outputs.pkg-name }}
90
96
- build
91
97
- test-pypi-publish
92
98
runs-on : ubuntu-latest
99
+ permissions :
100
+ contents : read
101
+ id-token : write # Needed for aws-actions/configure-aws-credentials
93
102
steps :
94
103
- uses : actions/checkout@v4
95
104
@@ -218,6 +227,8 @@ jobs:
218
227
# Trusted publishing has to also be configured on PyPI for each package:
219
228
# https://docs.pypi.org/trusted-publishers/adding-a-publisher/
220
229
id-token : write
230
+ contents : read
231
+ actions : read # Needed for actions/download-artifact
221
232
222
233
defaults :
223
234
run :
@@ -258,6 +269,7 @@ jobs:
258
269
# This permission is needed by `ncipollo/release-action` to
259
270
# create the GitHub release.
260
271
contents : write
272
+ actions : read # Needed for actions/download-artifact
261
273
262
274
defaults :
263
275
run :
Original file line number Diff line number Diff line change 17
17
run :
18
18
working-directory : ${{ inputs.working-directory }}
19
19
runs-on : ubuntu-latest
20
+ permissions :
21
+ contents : read
22
+ actions : write # Needed for actions/cache used by poetry_setup action
20
23
strategy :
21
24
matrix :
22
25
python-version :
Original file line number Diff line number Diff line change 21
21
build :
22
22
if : github.ref == 'refs/heads/main' || inputs.dangerous-nonmaster-release
23
23
runs-on : ubuntu-latest
24
+ permissions :
25
+ contents : read
26
+ actions : write # Needed for actions/upload-artifact
24
27
25
28
outputs :
26
29
pkg-name : ${{ steps.check-version.outputs.pkg-name }}
77
80
# Trusted publishing has to also be configured on PyPI for each package:
78
81
# https://docs.pypi.org/trusted-publishers/adding-a-publisher/
79
82
id-token : write
83
+ contents : read
84
+ actions : read # Needed for actions/download-artifact
80
85
81
86
steps :
82
87
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change 22
22
jobs :
23
23
build :
24
24
runs-on : ubuntu-latest
25
+ permissions :
26
+ contents : read
27
+ actions : read # Needed for Ana06/get-changed-files
25
28
steps :
26
29
- uses : actions/checkout@v4
27
30
- uses : actions/setup-python@v5
39
42
name : cd ${{ matrix.working-directory }}
40
43
needs : [ build ]
41
44
if : ${{ needs.build.outputs.dirs-to-lint != '[]' }}
45
+ permissions :
46
+ contents : read
47
+ actions : write # Needed for actions/cache used by poetry_setup action in _lint.yml
42
48
strategy :
43
49
matrix :
44
50
working-directory : ${{ fromJson(needs.build.outputs.dirs-to-lint) }}
51
57
name : cd ${{ matrix.working-directory }}
52
58
needs : [ build ]
53
59
if : ${{ needs.build.outputs.dirs-to-test != '[]' }}
60
+ permissions :
61
+ contents : read
62
+ actions : write # Needed for actions/cache used by poetry_setup action inside _test.yml
54
63
strategy :
55
64
matrix :
56
65
working-directory : ${{ fromJson(needs.build.outputs.dirs-to-test) }}
63
72
name : cd ${{ matrix.working-directory }}
64
73
needs : [ build ]
65
74
if : ${{ needs.build.outputs.dirs-to-test != '[]' }}
75
+ permissions :
76
+ contents : read
77
+ actions : write # Needed for actions/cache used by poetry_setup action inside _compile_integration_test.yml
66
78
strategy :
67
79
matrix :
68
80
working-directory : ${{ fromJson(needs.build.outputs.dirs-to-test) }}
76
88
if : |
77
89
always()
78
90
runs-on : ubuntu-latest
91
+ permissions :
92
+ contents : read
79
93
env :
80
94
JOBS_JSON : ${{ toJSON(needs) }}
81
95
RESULTS_JSON : ${{ toJSON(needs.*.result) }}
You can’t perform that action at this time.
0 commit comments