Skip to content

Commit 30875e9

Browse files
committed
add actions: write
1 parent 301cc87 commit 30875e9

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ defaults:
3232
shell: bash
3333
jobs:
3434
pr:
35+
permissions:
36+
actions: write # for rust-lang/simpleinfra/github-actions/cancel-outdated-builds
3537
name: PR
3638
env:
3739
CI_JOB_NAME: "${{ matrix.name }}"
@@ -144,6 +146,8 @@ jobs:
144146
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
145147
if: "success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
146148
auto:
149+
permissions:
150+
actions: write # for rust-lang/simpleinfra/github-actions/cancel-outdated-builds
147151
name: auto
148152
env:
149153
CI_JOB_NAME: "${{ matrix.name }}"
@@ -549,6 +553,8 @@ jobs:
549553
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
550554
if: "success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
551555
try:
556+
permissions:
557+
actions: write # for rust-lang/simpleinfra/github-actions/cancel-outdated-builds
552558
name: try
553559
env:
554560
CI_JOB_NAME: "${{ matrix.name }}"

src/ci/github-actions/ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ defaults:
276276

277277
jobs:
278278
pr:
279+
permissions:
280+
actions: write
279281
<<: *base-ci-job
280282
name: PR
281283
env:
@@ -296,6 +298,8 @@ jobs:
296298
<<: *job-linux-xl
297299

298300
auto:
301+
permissions:
302+
actions: write
299303
<<: *base-ci-job
300304
name: auto
301305
env:
@@ -722,6 +726,8 @@ jobs:
722726
<<: *job-windows-xl
723727

724728
try:
729+
permissions:
730+
actions: write # for rust-lang/simpleinfra/github-actions/cancel-outdated-builds
725731
<<: *base-ci-job
726732
name: try
727733
env:

0 commit comments

Comments
 (0)