diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index 5d5654fb6b9..85e38d08910 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -9,6 +9,7 @@ on: workflow_dispatch: permissions: + id-token: write deployments: write contents: write diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 77abee7d4fc..93da37b5068 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -18,6 +18,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && format('ci-master-{0}', github.sha) || format('ci-{0}', github.ref) }} cancel-in-progress: true +permissions: + id-token: write + contents: read + jobs: build-docs: strategy: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 89ba6ea0e3f..7b710a751fe 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,6 +15,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && format('ci-master-{0}', github.sha) || format('ci-{0}', github.ref) }} cancel-in-progress: true +permissions: + id-token: write + contents: read + jobs: python-source-and-configs: uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main diff --git a/.github/workflows/nightly_build.yml b/.github/workflows/nightly_build.yml index 732077f4b58..37c82fd8514 100644 --- a/.github/workflows/nightly_build.yml +++ b/.github/workflows/nightly_build.yml @@ -27,6 +27,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && format('ci-master-{0}', github.sha) || format('ci-{0}', github.ref) }} cancel-in-progress: true +permissions: + id-token: write + contents: read + jobs: build-wheel-linux: # Don't run on forked repos. diff --git a/.github/workflows/test-linux-habitat.yml b/.github/workflows/test-linux-habitat.yml index dc7a58aa116..57564a2f6fa 100644 --- a/.github/workflows/test-linux-habitat.yml +++ b/.github/workflows/test-linux-habitat.yml @@ -15,6 +15,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && format('ci-master-{0}', github.sha) || format('ci-{0}', github.ref) }} cancel-in-progress: true +permissions: + id-token: write + contents: read + jobs: tests: strategy: diff --git a/.github/workflows/test-linux-libs.yml b/.github/workflows/test-linux-libs.yml index 6b26f74274b..87580d67235 100644 --- a/.github/workflows/test-linux-libs.yml +++ b/.github/workflows/test-linux-libs.yml @@ -15,6 +15,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && format('ci-master-{0}', github.sha) || format('ci-{0}', github.ref) }} cancel-in-progress: true +permissions: + id-token: write + contents: read + jobs: unittests-atari-dqn: diff --git a/.github/workflows/test-linux-rlhf.yml b/.github/workflows/test-linux-rlhf.yml index 1fe23089e04..2e647476b69 100644 --- a/.github/workflows/test-linux-rlhf.yml +++ b/.github/workflows/test-linux-rlhf.yml @@ -15,6 +15,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && format('ci-master-{0}', github.sha) || format('ci-{0}', github.ref) }} cancel-in-progress: true +permissions: + id-token: write + contents: read + jobs: unittests: strategy: diff --git a/.github/workflows/test-linux-sota.yml b/.github/workflows/test-linux-sota.yml index d1fc38359b9..edab7e935ea 100644 --- a/.github/workflows/test-linux-sota.yml +++ b/.github/workflows/test-linux-sota.yml @@ -18,6 +18,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && format('ci-master-{0}', github.sha) || format('ci-{0}', github.ref) }} cancel-in-progress: true +permissions: + id-token: write + contents: read + jobs: tests: strategy: diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml index 8a22dc08c57..15cd067a822 100644 --- a/.github/workflows/test-linux.yml +++ b/.github/workflows/test-linux.yml @@ -18,6 +18,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && format('ci-master-{0}', github.sha) || format('ci-{0}', github.ref) }} cancel-in-progress: true +permissions: + id-token: write + contents: read + jobs: tests-cpu: strategy: diff --git a/.github/workflows/test-windows-optdepts.yml b/.github/workflows/test-windows-optdepts.yml index 14a8dd7ab13..dfcb8de7966 100644 --- a/.github/workflows/test-windows-optdepts.yml +++ b/.github/workflows/test-windows-optdepts.yml @@ -15,6 +15,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && format('ci-master-{0}', github.sha) || format('ci-{0}', github.ref) }} cancel-in-progress: true +permissions: + id-token: write + contents: read + jobs: unittests-cpu: uses: pytorch/test-infra/.github/workflows/windows_job.yml@main diff --git a/.github/workflows/wheels-legacy.yml b/.github/workflows/wheels-legacy.yml index d0daabe8449..707242dc81b 100644 --- a/.github/workflows/wheels-legacy.yml +++ b/.github/workflows/wheels-legacy.yml @@ -13,6 +13,10 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && format('ci-master-{0}', github.sha) || format('ci-{0}', github.ref) }} cancel-in-progress: true +permissions: + id-token: write + contents: read + jobs: build-wheel-windows: