From 8408953096609378ab4f20cb487dac3c4afee6be Mon Sep 17 00:00:00 2001 From: Mohd Subhan Date: Wed, 3 Jun 2026 11:36:32 +0530 Subject: [PATCH] fix(actions): support GITHUB_PAT in check-duplicates script --- .github/scripts/check-duplicates.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/check-duplicates.js b/.github/scripts/check-duplicates.js index 7783491d4..884cf3e91 100644 --- a/.github/scripts/check-duplicates.js +++ b/.github/scripts/check-duplicates.js @@ -18,13 +18,13 @@ function cosineSimilarity(vecA, vecB) { async function run() { const geminiApiKey = process.env.GEMINI_API_KEY; - const githubToken = process.env.GITHUB_TOKEN; + const githubToken = process.env.GITHUB_PAT || process.env.GITHUB_TOKEN; if (!geminiApiKey) { throw new Error('❌ Missing GEMINI_API_KEY environment variable.'); } if (!githubToken) { - throw new Error('❌ Missing GITHUB_TOKEN environment variable.'); + throw new Error('❌ Missing GITHUB_PAT or GITHUB_TOKEN environment variable.'); } const octokit = github.getOctokit(githubToken);