File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,15 @@ name: CI
25
25
pull_request :
26
26
branches :
27
27
- " **"
28
+ permissions :
29
+ contents : read
28
30
defaults :
29
31
run :
30
32
shell : bash
31
33
jobs :
32
34
pr :
35
+ permissions :
36
+ actions : write
33
37
name : PR
34
38
env :
35
39
CI_JOB_NAME : " ${{ matrix.name }}"
@@ -142,6 +146,8 @@ jobs:
142
146
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
143
147
if : " success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
144
148
auto :
149
+ permissions :
150
+ actions : write
145
151
name : auto
146
152
env :
147
153
CI_JOB_NAME : " ${{ matrix.name }}"
@@ -547,6 +553,8 @@ jobs:
547
553
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
548
554
if : " success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
549
555
try :
556
+ permissions :
557
+ actions : write
550
558
name : try
551
559
env :
552
560
CI_JOB_NAME : " ${{ matrix.name }}"
Original file line number Diff line number Diff line change 264
264
branches :
265
265
- " **"
266
266
267
+ permissions :
268
+ contents : read
269
+
267
270
defaults :
268
271
run :
269
272
# On Linux, macOS, and Windows, use the system-provided bash as the default
@@ -273,6 +276,8 @@ defaults:
273
276
274
277
jobs :
275
278
pr :
279
+ permissions :
280
+ actions : write # for rust-lang/simpleinfra/github-actions/cancel-outdated-builds
276
281
<< : *base-ci-job
277
282
name : PR
278
283
env :
@@ -293,6 +298,8 @@ jobs:
293
298
<< : *job-linux-xl
294
299
295
300
auto :
301
+ permissions :
302
+ actions : write # for rust-lang/simpleinfra/github-actions/cancel-outdated-builds
296
303
<< : *base-ci-job
297
304
name : auto
298
305
env :
@@ -719,6 +726,8 @@ jobs:
719
726
<< : *job-windows-xl
720
727
721
728
try :
729
+ permissions :
730
+ actions : write # for rust-lang/simpleinfra/github-actions/cancel-outdated-builds
722
731
<< : *base-ci-job
723
732
name : try
724
733
env :
You can’t perform that action at this time.
0 commit comments