From 0df27c38a157bc0657e451716f21580bbb98a32b Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Sun, 9 Aug 2026 14:58:25 -0500 Subject: [PATCH] ids token --- .github/workflows/ids.yaml | 6 +++--- packages/scripts/src/discoverIds/index.ts | 7 ++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ids.yaml b/.github/workflows/ids.yaml index 353533967..ae2b3f06e 100644 --- a/.github/workflows/ids.yaml +++ b/.github/workflows/ids.yaml @@ -11,9 +11,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -env: - PUBLIC_WARGAMING_APPLICATION_ID: ${{ secrets.PUBLIC_WARGAMING_APPLICATION_ID }} - jobs: discover: name: Discover IDs @@ -40,3 +37,6 @@ jobs: - name: Discover IDs run: bun run discover-ids + env: + PUBLIC_WARGAMING_APPLICATION_ID: ${{ secrets.PUBLIC_WARGAMING_APPLICATION_ID }} + GH_TOKEN: ${{ secrets.IDS_TOKEN }} diff --git a/packages/scripts/src/discoverIds/index.ts b/packages/scripts/src/discoverIds/index.ts index 03986e9fd..e4b610a6d 100644 --- a/packages/scripts/src/discoverIds/index.ts +++ b/packages/scripts/src/discoverIds/index.ts @@ -46,7 +46,12 @@ await rm(WORKING_DIR, { recursive: true, force: true }); console.log(`Cloning ${REPO} to ${WORKING_DIR}`); -await $`git clone --depth 1 https://github.com/${REPO} ${WORKING_DIR}`; +const token = process.env.GH_TOKEN; +const repoUrl = token + ? `https://x-access-token:${token}@github.com/${REPO}.git` + : `https://github.com/${REPO}.git`; + +await $`git clone --depth 1 ${repoUrl} ${WORKING_DIR}`; await mkdir(CHUNKS_DIR, { recursive: true }); console.log(`Discovering pre-existing chunks...`);