chore(ci): add GITHUB_TOKEN to CI build environment and update GitHub Checksums authorization

This commit is contained in:
taroj1205 2025-06-22 18:19:46 +12:00
parent a6292e79ce
commit 50df285dec
No known key found for this signature in database
GPG key ID: 0FCB6CFFE0981AB7
2 changed files with 3 additions and 0 deletions

View file

@ -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

View file

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