diff --git a/scripts/tools/extract-tools-github.ts b/scripts/tools/extract-tools-github.ts index 1e74402d645d..67e4b10f0e72 100644 --- a/scripts/tools/extract-tools-github.ts +++ b/scripts/tools/extract-tools-github.ts @@ -14,6 +14,9 @@ dotenv.config(); * @throws {Error} If there is an error fetching the data. */ export async function getData(): Promise { + if (!process.env.GITHUB_TOKEN) { + throw new Error('GITHUB_TOKEN environment variable is required'); + } // eslint-disable-next-line no-useless-catch try { const allItems = [];