From 50df285decf912b6f7bc6f76282a8fc8c77cade7 Mon Sep 17 00:00:00 2001 From: taroj1205 Date: Sun, 22 Jun 2025 18:19:46 +1200 Subject: [PATCH] chore(ci): add GITHUB_TOKEN to CI build environment and update GitHub Checksums authorization --- .github/workflows/ci-pipeline.yml | 2 ++ src/utils/githubChecksums.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index 15d4dfa..17349f8 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -169,6 +169,8 @@ jobs: run: pnpm install --frozen-lockfile - name: Build project + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: pnpm exec turbo run build - name: Upload build artifacts diff --git a/src/utils/githubChecksums.ts b/src/utils/githubChecksums.ts index 718b941..72d5e41 100644 --- a/src/utils/githubChecksums.ts +++ b/src/utils/githubChecksums.ts @@ -18,6 +18,7 @@ export async function getChecksums() { Accept: 'application/vnd.github+json', 'X-GitHub-Api-Version': '2022-11-28', 'User-Agent': 'zen-browser-checksum-fetcher', + Authorization: `Bearer ${process.env.GITHUB_TOKEN}`, }, }) if (!res.ok) throw new Error(`Failed to fetch GitHub release: ${res.statusText}`)