From c127ba64834ee1f25b7227d0f978458557495cd7 Mon Sep 17 00:00:00 2001 From: Michael <13900043+michaelzhang-ai@users.noreply.github.com> Date: Sun, 14 Jun 2026 17:43:47 -0700 Subject: [PATCH] [AMD] ci: fix scheduled AMD runs startup failure when calling extra-a suite (#28214) --- .github/workflows/pr-test-amd-rocm720.yml | 11 +++++++++++ .github/workflows/pr-test-amd.yml | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/.github/workflows/pr-test-amd-rocm720.yml b/.github/workflows/pr-test-amd-rocm720.yml index 0348212f9..b7c0bbd66 100644 --- a/.github/workflows/pr-test-amd-rocm720.yml +++ b/.github/workflows/pr-test-amd-rocm720.yml @@ -99,6 +99,17 @@ on: type: boolean default: true +# Mirror pr-test.yml: the chained extra suite (call-pr-test-amd-extra-rocm720 +# -> pr-test-amd-extra.yml) declares actions: write / issues: read / +# pull-requests: read. A called reusable workflow can only use scopes the +# caller already holds, so without this block the call fails workflow +# validation ("requesting actions: write... but only allowed ...none"). +permissions: + actions: write + contents: read + issues: read + pull-requests: read + env: AITER_COMMIT_OVERRIDE: ${{ inputs.aiter_ref }} DOCKERHUB_AMD_USERNAME: ${{ secrets.DOCKERHUB_AMD_USERNAME }} diff --git a/.github/workflows/pr-test-amd.yml b/.github/workflows/pr-test-amd.yml index 23a38df39..8d3398977 100644 --- a/.github/workflows/pr-test-amd.yml +++ b/.github/workflows/pr-test-amd.yml @@ -95,6 +95,17 @@ on: type: boolean default: false +# Mirror pr-test.yml: the chained extra suite (call-pr-test-amd-extra -> +# pr-test-amd-extra.yml) declares actions: write / issues: read / +# pull-requests: read. A called reusable workflow can only use scopes the +# caller already holds, so without this block the call fails workflow +# validation ("requesting actions: write... but only allowed ...none"). +permissions: + actions: write + contents: read + issues: read + pull-requests: read + env: AITER_COMMIT_OVERRIDE: ${{ inputs.aiter_ref }} DOCKERHUB_AMD_USERNAME: ${{ secrets.DOCKERHUB_AMD_USERNAME }}