From 8a7749db242010f2d1c4039be707729c10555194 Mon Sep 17 00:00:00 2001 From: Daniel Rossides Date: Sat, 20 Dec 2025 23:21:47 +0000 Subject: [PATCH] fix: passes GitHub token into update script --- .github/workflows/update.yml | 2 ++ scripts/core/utils.ts | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 4015aa19..26255c8b 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -32,6 +32,8 @@ jobs: run: npm run channels:lint - name: update sites.md run: npm run sites:update + env: + GH_TOKEN: ${{ steps.create-app-token.outputs.token }} - run: git status - name: commit changes to sites.md if: ${{ !env.ACT && github.ref == 'refs/heads/master' }} diff --git a/scripts/core/utils.ts b/scripts/core/utils.ts index ae2377ac..34e9d140 100644 --- a/scripts/core/utils.ts +++ b/scripts/core/utils.ts @@ -80,7 +80,9 @@ export async function loadJs(filepath: string) { export async function loadIssues(props?: { labels: string[] | string }) { const CustomOctokit = Octokit.plugin(paginateRest, restEndpointMethods) - const octokit = new CustomOctokit() + const octokit = new CustomOctokit({ + auth: process.env.GH_TOKEN + }) let labels = '' if (props && props.labels) {