8
8
Version-Check :
9
9
name : Version
10
10
runs-on : ubuntu-24.04
11
-
11
+ permissions :
12
+ contents : read
12
13
steps :
13
14
- name : SCM Checkout
14
15
uses : actions/checkout@v4
25
26
name : Docs
26
27
needs : [ Version-Check ]
27
28
runs-on : ubuntu-24.04
28
-
29
+ permissions :
30
+ contents : read
29
31
steps :
30
32
- name : SCM Checkout
31
33
uses : actions/checkout@v4
40
42
Changelog :
41
43
name : Changelog Update Check
42
44
runs-on : ubuntu-24.04
45
+ permissions :
46
+ contents : read
43
47
if : ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' }}
44
-
45
48
steps :
46
49
- name : SCM Checkout
47
50
uses : actions/checkout@v4
@@ -55,11 +58,15 @@ jobs:
55
58
build-matrix :
56
59
name : Generate Build Matrix
57
60
uses : ./.github/workflows/matrix-python.yml
61
+ permissions :
62
+ contents : read
58
63
59
64
Lint :
60
65
name : Linting (Python-${{ matrix.python-version }})
61
66
needs : [ Version-Check, build-matrix ]
62
67
runs-on : ubuntu-24.04
68
+ permissions :
69
+ contents : read
63
70
strategy :
64
71
fail-fast : false
65
72
matrix : ${{ fromJson(needs.build-matrix.outputs.matrix) }}
89
96
name : Type Checking (Python-${{ matrix.python-version }})
90
97
needs : [ Version-Check, build-matrix ]
91
98
runs-on : ubuntu-24.04
99
+ permissions :
100
+ contents : read
92
101
strategy :
93
102
fail-fast : false
94
103
matrix : ${{ fromJson(needs.build-matrix.outputs.matrix) }}
@@ -109,10 +118,11 @@ jobs:
109
118
name : Security Checks (Python-${{ matrix.python-version }})
110
119
needs : [ Version-Check, build-matrix ]
111
120
runs-on : ubuntu-24.04
121
+ permissions :
122
+ contents : read
112
123
strategy :
113
124
fail-fast : false
114
125
matrix : ${{ fromJson(needs.build-matrix.outputs.matrix) }}
115
-
116
126
steps :
117
127
- name : SCM Checkout
118
128
uses : actions/checkout@v4
@@ -135,7 +145,8 @@ jobs:
135
145
Format :
136
146
name : Format Check
137
147
runs-on : ubuntu-24.04
138
-
148
+ permissions :
149
+ contents : read
139
150
steps :
140
151
- name : SCM Checkout
141
152
uses : actions/checkout@v4
@@ -150,6 +161,8 @@ jobs:
150
161
name : Unit-Tests (Python-${{ matrix.python-version }})
151
162
needs : [ Documentation, Lint, Type-Check, Security, Format, build-matrix ]
152
163
runs-on : ubuntu-24.04
164
+ permissions :
165
+ contents : read
153
166
env :
154
167
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
155
168
strategy :
0 commit comments