File tree Expand file tree Collapse file tree 21 files changed +83
-0
lines changed Expand file tree Collapse file tree 21 files changed +83
-0
lines changed Original file line number Diff line number Diff line change 27
27
(github.event_name != 'pull_request' && github.repository == 'arduino/arduino-lint') ||
28
28
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'arduino/arduino-lint')
29
29
runs-on : ubuntu-latest
30
+ permissions : {}
30
31
strategy :
31
32
fail-fast : false
32
33
Original file line number Diff line number Diff line change 28
28
runs-on : ubuntu-latest
29
29
outputs :
30
30
result : ${{ steps.determination.outputs.result }}
31
+ permissions : {}
31
32
steps :
32
33
- name : Determine if the rest of the workflow should run
33
34
id : determination
51
52
needs : run-determination
52
53
if : needs.run-determination.outputs.result == 'true'
53
54
runs-on : ubuntu-latest
55
+ permissions : {}
54
56
55
57
steps :
56
58
- name : Checkout local repository
Original file line number Diff line number Diff line change 14
14
jobs :
15
15
check :
16
16
runs-on : ubuntu-latest
17
+ permissions :
18
+ contents : read
17
19
18
20
steps :
19
21
- name : Set environment variables
Original file line number Diff line number Diff line change 37
37
jobs :
38
38
run-determination :
39
39
runs-on : ubuntu-latest
40
+ permissions : {}
40
41
outputs :
41
42
result : ${{ steps.determination.outputs.result }}
42
43
steps :
62
63
needs : run-determination
63
64
if : needs.run-determination.outputs.result == 'true'
64
65
runs-on : ubuntu-latest
66
+ permissions :
67
+ contents : read
65
68
66
69
steps :
67
70
- name : Checkout repository
@@ -118,6 +121,8 @@ jobs:
118
121
needs : run-determination
119
122
if : needs.run-determination.outputs.result == 'true'
120
123
runs-on : ubuntu-latest
124
+ permissions :
125
+ contents : read
121
126
122
127
steps :
123
128
- name : Checkout repository
Original file line number Diff line number Diff line change 28
28
jobs :
29
29
run-determination :
30
30
runs-on : ubuntu-latest
31
+ permissions : {}
31
32
outputs :
32
33
result : ${{ steps.determination.outputs.result }}
33
34
steps :
54
55
needs : run-determination
55
56
if : needs.run-determination.outputs.result == 'true'
56
57
runs-on : ubuntu-latest
58
+ permissions :
59
+ contents : read
57
60
58
61
strategy :
59
62
fail-fast : false
89
92
needs : run-determination
90
93
if : needs.run-determination.outputs.result == 'true'
91
94
runs-on : ubuntu-latest
95
+ permissions :
96
+ contents : read
92
97
93
98
strategy :
94
99
fail-fast : false
@@ -127,6 +132,8 @@ jobs:
127
132
needs : run-determination
128
133
if : needs.run-determination.outputs.result == 'true'
129
134
runs-on : ubuntu-latest
135
+ permissions :
136
+ contents : read
130
137
131
138
strategy :
132
139
fail-fast : false
@@ -165,6 +172,8 @@ jobs:
165
172
needs : run-determination
166
173
if : needs.run-determination.outputs.result == 'true'
167
174
runs-on : ubuntu-latest
175
+ permissions :
176
+ contents : read
168
177
169
178
strategy :
170
179
fail-fast : false
@@ -203,6 +212,8 @@ jobs:
203
212
needs : run-determination
204
213
if : needs.run-determination.outputs.result == 'true'
205
214
runs-on : ubuntu-latest
215
+ permissions :
216
+ contents : read
206
217
207
218
strategy :
208
219
fail-fast : false
Original file line number Diff line number Diff line change 31
31
jobs :
32
32
check-license :
33
33
runs-on : ubuntu-latest
34
+ permissions :
35
+ contents : read
34
36
35
37
steps :
36
38
- name : Checkout repository
Original file line number Diff line number Diff line change 36
36
jobs :
37
37
lint :
38
38
runs-on : ubuntu-latest
39
+ permissions :
40
+ contents : read
39
41
40
42
steps :
41
43
- name : Checkout repository
55
57
56
58
links :
57
59
runs-on : ubuntu-latest
60
+ permissions :
61
+ contents : read
58
62
59
63
steps :
60
64
- name : Checkout repository
Original file line number Diff line number Diff line change 37
37
jobs :
38
38
check :
39
39
runs-on : ubuntu-latest
40
+ permissions :
41
+ contents : read
40
42
41
43
steps :
42
44
- name : Checkout repository
Original file line number Diff line number Diff line change 201
201
jobs :
202
202
check :
203
203
runs-on : ubuntu-latest
204
+ permissions :
205
+ contents : read
204
206
205
207
steps :
206
208
- name : Checkout repository
Original file line number Diff line number Diff line change 33
33
jobs :
34
34
lint :
35
35
runs-on : ubuntu-latest
36
+ permissions :
37
+ contents : read
36
38
37
39
steps :
38
40
- name : Checkout repository
60
62
61
63
formatting :
62
64
runs-on : ubuntu-latest
65
+ permissions :
66
+ contents : read
63
67
64
68
steps :
65
69
- name : Checkout repository
Original file line number Diff line number Diff line change 27
27
lint :
28
28
name : ${{ matrix.configuration.name }}
29
29
runs-on : ubuntu-latest
30
+ permissions :
31
+ contents : read
30
32
31
33
env :
32
34
# See: https://github.com/koalaman/shellcheck/releases/latest
89
91
90
92
formatting :
91
93
runs-on : ubuntu-latest
94
+ permissions :
95
+ contents : read
92
96
93
97
steps :
94
98
- name : Set environment variables
@@ -132,6 +136,8 @@ jobs:
132
136
133
137
executable :
134
138
runs-on : ubuntu-latest
139
+ permissions :
140
+ contents : read
135
141
136
142
steps :
137
143
- name : Checkout repository
Original file line number Diff line number Diff line change 20
20
jobs :
21
21
validate :
22
22
runs-on : ubuntu-latest
23
+ permissions :
24
+ contents : read
23
25
24
26
steps :
25
27
- name : Checkout repository
Original file line number Diff line number Diff line change 32
32
jobs :
33
33
publish-determination :
34
34
runs-on : ubuntu-latest
35
+ permissions : {}
35
36
outputs :
36
37
result : ${{ steps.determination.outputs.result }}
37
38
steps :
51
52
runs-on : ubuntu-latest
52
53
needs : publish-determination
53
54
if : needs.publish-determination.outputs.result == 'true'
55
+ permissions :
56
+ contents : write
54
57
55
58
steps :
56
59
- name : Checkout repository
Original file line number Diff line number Diff line change 21
21
jobs :
22
22
create-nightly-artifacts :
23
23
runs-on : ubuntu-latest
24
+ permissions :
25
+ contents : read
24
26
25
27
strategy :
26
28
matrix :
66
68
checksum-darwin_amd64 : ${{ steps.re-package.outputs.checksum-darwin_amd64 }}
67
69
checksum-darwin_arm64 : ${{ steps.re-package.outputs.checksum-darwin_arm64 }}
68
70
71
+ permissions :
72
+ contents : read
73
+
69
74
env :
70
75
GON_CONFIG_PATH : gon.config.hcl
71
76
@@ -166,6 +171,7 @@ jobs:
166
171
publish-nightly :
167
172
runs-on : ubuntu-latest
168
173
needs : notarize-macos
174
+ permissions : {}
169
175
170
176
steps :
171
177
- name : Download artifact
@@ -194,6 +200,7 @@ jobs:
194
200
runs-on : ubuntu-latest
195
201
needs : publish-nightly
196
202
if : failure() # Run if publish-nightly or any of its job dependencies failed
203
+ permissions : {}
197
204
198
205
steps :
199
206
- name : Report failure
Original file line number Diff line number Diff line change 34
34
runs-on : ubuntu-latest
35
35
outputs :
36
36
result : ${{ steps.determination.outputs.result }}
37
+ permissions : {}
37
38
steps :
38
39
- name : Determine if the rest of the workflow should run
39
40
id : determination
57
58
needs : run-determination
58
59
if : needs.run-determination.outputs.result == 'true'
59
60
runs-on : ubuntu-latest
61
+ permissions : {}
60
62
outputs :
61
63
prefix : ${{ steps.calculation.outputs.prefix }}
62
64
steps :
75
77
needs : package-name-prefix
76
78
name : Build ${{ matrix.os.name }}
77
79
runs-on : ubuntu-latest
80
+ permissions :
81
+ contents : read
78
82
79
83
strategy :
80
84
matrix :
@@ -135,6 +139,8 @@ jobs:
135
139
- build
136
140
- package-name-prefix
137
141
runs-on : ubuntu-latest
142
+ permissions :
143
+ contents : read
138
144
139
145
steps :
140
146
- name : Download build artifacts
Original file line number Diff line number Diff line change 18
18
jobs :
19
19
create-release-artifacts :
20
20
runs-on : ubuntu-latest
21
+ permissions :
22
+ contents : read
21
23
22
24
strategy :
23
25
matrix :
71
73
outputs :
72
74
checksum-darwin_amd64 : ${{ steps.re-package.outputs.checksum-darwin_amd64 }}
73
75
checksum-darwin_arm64 : ${{ steps.re-package.outputs.checksum-darwin_arm64 }}
76
+ permissions :
77
+ contents : read
74
78
75
79
env :
76
80
GON_CONFIG_PATH : gon.config.hcl
@@ -172,6 +176,8 @@ jobs:
172
176
create-release :
173
177
runs-on : ubuntu-latest
174
178
needs : notarize-macos
179
+ permissions :
180
+ contents : write
175
181
176
182
steps :
177
183
- name : Download artifact
Original file line number Diff line number Diff line change 18
18
jobs :
19
19
spellcheck :
20
20
runs-on : ubuntu-latest
21
+ permissions :
22
+ contents : read
21
23
22
24
steps :
23
25
- name : Checkout repository
Original file line number Diff line number Diff line change 24
24
jobs :
25
25
check :
26
26
runs-on : ubuntu-latest
27
+ permissions :
28
+ contents : read
27
29
28
30
steps :
29
31
- name : Checkout repository
55
57
download :
56
58
needs : check
57
59
runs-on : ubuntu-latest
60
+ permissions : {}
58
61
59
62
strategy :
60
63
matrix :
82
85
sync :
83
86
needs : download
84
87
runs-on : ubuntu-latest
88
+ permissions :
89
+ contents : read
90
+ issues : write
85
91
86
92
steps :
87
93
- name : Set environment variables
Original file line number Diff line number Diff line change 38
38
runs-on : ubuntu-latest
39
39
outputs :
40
40
result : ${{ steps.determination.outputs.result }}
41
+ permissions : {}
41
42
steps :
42
43
- name : Determine if the rest of the workflow should run
43
44
id : determination
60
61
test :
61
62
needs : run-determination
62
63
if : needs.run-determination.outputs.result == 'true'
64
+ permissions :
65
+ contents : read
63
66
64
67
strategy :
65
68
matrix :
Original file line number Diff line number Diff line change 34
34
runs-on : ubuntu-latest
35
35
outputs :
36
36
result : ${{ steps.determination.outputs.result }}
37
+ permissions : {}
37
38
steps :
38
39
- name : Determine if the rest of the workflow should run
39
40
id : determination
57
58
name : test (${{ matrix.module.path }} - ${{ matrix.operating-system }})
58
59
needs : run-determination
59
60
if : needs.run-determination.outputs.result == 'true'
61
+ permissions :
62
+ contents : read
60
63
61
64
strategy :
62
65
fail-fast : false
You can’t perform that action at this time.
0 commit comments