From 96f36cd3b4f8bf6c23d9a7dc94c8a2d9a01db5d7 Mon Sep 17 00:00:00 2001 From: Roger Barker Date: Fri, 20 Dec 2024 23:32:00 -0600 Subject: [PATCH] ci: Update Check Integration/XTS Job State to include GH_TOKEN **Description**: Add GH_TOKEN env variable in Check Prep XTS Job & Check Integration Job State **Related Issue(s)**: Fixes #17159 Signed-off-by: Roger Barker --- .github/workflows/node-flow-deploy-release-artifact.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/node-flow-deploy-release-artifact.yaml b/.github/workflows/node-flow-deploy-release-artifact.yaml index 5bffa1821ea..fee3555bb96 100644 --- a/.github/workflows/node-flow-deploy-release-artifact.yaml +++ b/.github/workflows/node-flow-deploy-release-artifact.yaml @@ -41,6 +41,10 @@ defaults: run: shell: bash +permissions: + contents: read + actions: read + jobs: prepare-tag-release: name: Prepare Release [Tag] @@ -156,6 +160,8 @@ jobs: - name: Check Prep XTS Job State id: check-xts-job if: ${{ needs.release-branch.result == 'success' }} + env: + GH_TOKEN: ${{ github.token }} run: | JOB_ENABLED="true" JOB_STATE=$(gh workflow list --all --json name,state | jq -r '.[]|select(.name=="ZXF: Prepare Extended Test Suite")|.state') @@ -177,6 +183,8 @@ jobs: if: ${{ needs.release-branch.result == 'success' && (inputs.author != '' && inputs.msg != '' && inputs.sha != '') && !cancelled() }} + env: + GH_TOKEN: ${{ github.token }} run: | JOB_ENABLED="true" JOB_STATE=$(gh workflow list --all --json name,state | jq -r '.[]|select(.name=="ZXF: [Node] Deploy Integration Network Release")|.state')