diff options
| author | sashashura <93376818+sashashura@users.noreply.github.com> | 2022-09-04 19:56:28 +0300 |
|---|---|---|
| committer | sashashura <93376818+sashashura@users.noreply.github.com> | 2022-09-04 19:56:28 +0300 |
| commit | 30875e9d0b3d06c3d271be0e869728a4baa0ddeb (patch) | |
| tree | 77dbbfcb2ecf2c14f24062fa4c7e2a0fcebcf116 | |
| parent | 301cc87abe1c732c0a7e9e9efe266fd0e10130fc (diff) | |
| download | rust-30875e9d0b3d06c3d271be0e869728a4baa0ddeb.tar.gz rust-30875e9d0b3d06c3d271be0e869728a4baa0ddeb.zip | |
add actions: write
| -rw-r--r-- | .github/workflows/ci.yml | 6 | ||||
| -rw-r--r-- | src/ci/github-actions/ci.yml | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ebbc9c1c4b..91b139664c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }}" @@ -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 }}" @@ -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 }}" diff --git a/src/ci/github-actions/ci.yml b/src/ci/github-actions/ci.yml index 42ce0576d49..0f748ed0c62 100644 --- a/src/ci/github-actions/ci.yml +++ b/src/ci/github-actions/ci.yml @@ -276,6 +276,8 @@ defaults: jobs: pr: + permissions: + actions: write <<: *base-ci-job name: PR env: @@ -296,6 +298,8 @@ jobs: <<: *job-linux-xl auto: + permissions: + actions: write <<: *base-ci-job name: auto env: @@ -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: |
