From b8f281d0f57784c0a7d5bdd7f60555ab7df35cce Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Thu, 5 Jun 2025 20:52:43 +0200 Subject: [PATCH] Allow anonymous GitHub usage without GITHUB_TOKEN env variable (#2670) In case the env var isn't present (like in a Netlify deploy without sensitive variables), this makes sure that "auth" is undefined rather than an invalid empty string. Signed-off-by: Julius Volz --- scripts/githubClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/githubClient.ts b/scripts/githubClient.ts index 28afba1c..952c1bbd 100644 --- a/scripts/githubClient.ts +++ b/scripts/githubClient.ts @@ -4,5 +4,5 @@ import { Octokit } from "octokit"; dotenv.config(); export const octokit = new Octokit({ - auth: `${process.env.GITHUB_TOKEN}`, + auth: process.env.GITHUB_TOKEN, });