From 6b91fa28cc7b01a5677cb93d6d4fc0000f12906a Mon Sep 17 00:00:00 2001 From: krish Date: Tue, 7 Jul 2026 18:35:51 +0530 Subject: [PATCH] Update workflow --- .github/workflows/enforce-design-gate.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/enforce-design-gate.yml b/.github/workflows/enforce-design-gate.yml index 2b061c527..5384c839e 100644 --- a/.github/workflows/enforce-design-gate.yml +++ b/.github/workflows/enforce-design-gate.yml @@ -4,7 +4,8 @@ name: Enforce Design Gate # This workflow polls https://github.com/orgs/wso2/projects/144 once per day and moves invalid # feature issues from "Development" back to "Design". # -# This intentionally uses the built-in GITHUB_TOKEN, not a PAT secret. +# Prerequisite: +# - PROJECT_TOKEN secret with access to read/write the org Project v2 and comment on issues. on: schedule: - cron: '0 2 * * *' @@ -21,6 +22,7 @@ jobs: - name: Revert invalid Projects v2 items to Design uses: actions/github-script@v7 with: + github-token: ${{ secrets.GITHUB_TOKEN }} script: | const PROJECT_OWNER = 'wso2'; const PROJECT_NUMBER = 144;