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}`)