From 0b206c5930d05948a1ae0ff7f6b2440bdb509932 Mon Sep 17 00:00:00 2001 From: maiieul <45822175+maiieul@users.noreply.github.com> Date: Mon, 9 Feb 2026 18:26:25 +0100 Subject: [PATCH] fix(ci): fix auto-assign workflow token MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use QWIK_AUTO_ASSIGN_PR_PAT for team membership check and PR assignment — GITHUB_TOKEN lacks read:org scope so the check always silently failed. --- .github/workflows/auto-assign-core-team.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/auto-assign-core-team.yml b/.github/workflows/auto-assign-core-team.yml index 19331d9bd67..ba0ae273746 100644 --- a/.github/workflows/auto-assign-core-team.yml +++ b/.github/workflows/auto-assign-core-team.yml @@ -16,7 +16,7 @@ jobs: - name: Check team membership via REST id: team env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.QWIK_AUTO_ASSIGN_PR_PAT }} ORG: QwikDev TEAM_SLUG: qwik-team AUTHOR: ${{ github.event.pull_request.user.login }} @@ -36,7 +36,7 @@ jobs: - name: Assign PR to author if: steps.team.outputs.isCore == 'true' env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.QWIK_AUTO_ASSIGN_PR_PAT }} run: | PR_NUMBER=${{ github.event.pull_request.number }} AUTHOR=${{ github.event.pull_request.user.login }} @@ -51,14 +51,14 @@ jobs: uses: actions/add-to-project@v0.6.1 with: project-url: https://github.com/orgs/QwikDev/projects/1 - github-token: ${{ secrets.QWIK_API_TOKEN_GITHUB }} + github-token: ${{ secrets.QWIK_AUTO_ASSIGN_PR_PAT }} - name: Ensure project + set Status to "In progress" (draft) if: steps.team.outputs.isCore == 'true' && github.event.pull_request.draft == true uses: actions/add-to-project@v0.6.1 with: project-url: https://github.com/orgs/QwikDev/projects/1 - github-token: ${{ secrets.QWIK_API_TOKEN_GITHUB }} + github-token: ${{ secrets.QWIK_AUTO_ASSIGN_PR_PAT }} fields: | Status: In progress @@ -67,6 +67,6 @@ jobs: uses: actions/add-to-project@v0.6.1 with: project-url: https://github.com/orgs/QwikDev/projects/1 - github-token: ${{ secrets.QWIK_API_TOKEN_GITHUB }} + github-token: ${{ secrets.QWIK_AUTO_ASSIGN_PR_PAT }} fields: | Status: Waiting For Review \ No newline at end of file