fix: passes GitHub token into update script

This commit is contained in:
Daniel Rossides
2025-12-20 23:21:47 +00:00
parent 0d8de71ba5
commit 8a7749db24
2 changed files with 5 additions and 1 deletions

View File

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

View File

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