From cfcea57ab46eebb688283eea1ded55bc1c46e65a Mon Sep 17 00:00:00 2001 From: amdfaa <107946068+amdfaa@users.noreply.github.com> Date: Tue, 21 Jan 2025 10:39:02 -0600 Subject: [PATCH 1/2] Update lint.yml --- .github/workflows/lint.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 22ada97fba8..3afedd581ac 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -66,6 +66,9 @@ jobs: python-types: uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + permissions: + id-token: write + contents: read with: repository: pytorch/vision test-infra-ref: main From 36d767baeb3fa39fef7512d7b917cd255e148f73 Mon Sep 17 00:00:00 2001 From: amdfaa <107946068+amdfaa@users.noreply.github.com> Date: Tue, 21 Jan 2025 10:41:08 -0600 Subject: [PATCH 2/2] Update lint.yml --- .github/workflows/lint.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3afedd581ac..b158ed65f4d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,6 +12,9 @@ on: jobs: python-source-and-configs: uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + permissions: + id-token: write + contents: read with: repository: pytorch/vision test-infra-ref: main @@ -39,6 +42,9 @@ jobs: c-source: uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main + permissions: + id-token: write + contents: read with: repository: pytorch/vision test-infra-ref: main