Skip to content

Commit

Permalink
add actions: write
Browse files Browse the repository at this point in the history
  • Loading branch information
sashashura committed Sep 4, 2022
1 parent 301cc87 commit 30875e9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ defaults:
shell: bash
jobs:
pr:
permissions:
actions: write # for rust-lang/simpleinfra/github-actions/cancel-outdated-builds
name: PR
env:
CI_JOB_NAME: "${{ matrix.name }}"
Expand Down Expand Up @@ -144,6 +146,8 @@ jobs:
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
if: "success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
auto:
permissions:
actions: write # for rust-lang/simpleinfra/github-actions/cancel-outdated-builds
name: auto
env:
CI_JOB_NAME: "${{ matrix.name }}"
Expand Down Expand Up @@ -549,6 +553,8 @@ jobs:
AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
if: "success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
try:
permissions:
actions: write # for rust-lang/simpleinfra/github-actions/cancel-outdated-builds
name: try
env:
CI_JOB_NAME: "${{ matrix.name }}"
Expand Down
6 changes: 6 additions & 0 deletions src/ci/github-actions/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ defaults:

jobs:
pr:
permissions:
actions: write
<<: *base-ci-job
name: PR
env:
Expand All @@ -296,6 +298,8 @@ jobs:
<<: *job-linux-xl

auto:
permissions:
actions: write
<<: *base-ci-job
name: auto
env:
Expand Down Expand Up @@ -722,6 +726,8 @@ jobs:
<<: *job-windows-xl

try:
permissions:
actions: write # for rust-lang/simpleinfra/github-actions/cancel-outdated-builds
<<: *base-ci-job
name: try
env:
Expand Down

0 comments on commit 30875e9

Please sign in to comment.