File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -25,11 +25,15 @@ name: CI
2525 pull_request :
2626 branches :
2727 - " **"
28+ permissions :
29+ contents : read
2830defaults :
2931 run :
3032 shell : bash
3133jobs :
3234 pr :
35+ permissions :
36+ actions : write
3337 name : PR
3438 env :
3539 CI_JOB_NAME : " ${{ matrix.name }}"
@@ -142,6 +146,8 @@ jobs:
142146 AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
143147 if : " success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
144148 auto :
149+ permissions :
150+ actions : write
145151 name : auto
146152 env :
147153 CI_JOB_NAME : " ${{ matrix.name }}"
@@ -547,6 +553,8 @@ jobs:
547553 AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
548554 if : " success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
549555 try :
556+ permissions :
557+ actions : write
550558 name : try
551559 env :
552560 CI_JOB_NAME : " ${{ matrix.name }}"
Original file line number Diff line number Diff line change 264264 branches :
265265 - " **"
266266
267+ permissions :
268+ contents : read
269+
267270defaults :
268271 run :
269272 # On Linux, macOS, and Windows, use the system-provided bash as the default
@@ -273,6 +276,8 @@ defaults:
273276
274277jobs :
275278 pr :
279+ permissions :
280+ actions : write # for rust-lang/simpleinfra/github-actions/cancel-outdated-builds
276281 << : *base-ci-job
277282 name : PR
278283 env :
@@ -293,6 +298,8 @@ jobs:
293298 << : *job-linux-xl
294299
295300 auto :
301+ permissions :
302+ actions : write # for rust-lang/simpleinfra/github-actions/cancel-outdated-builds
296303 << : *base-ci-job
297304 name : auto
298305 env :
@@ -719,6 +726,8 @@ jobs:
719726 << : *job-windows-xl
720727
721728 try :
729+ permissions :
730+ actions : write # for rust-lang/simpleinfra/github-actions/cancel-outdated-builds
722731 << : *base-ci-job
723732 name : try
724733 env :
You can’t perform that action at this time.
0 commit comments