From 2227ac3d06824de92bbdd9d768b7fbe958d780fc Mon Sep 17 00:00:00 2001 From: Rich Hankins Date: Tue, 9 Dec 2025 22:02:21 +0000 Subject: [PATCH] Fixup github-action-indexer example Small fixes to the github-action-indexer example --- .../context/github-action-indexer/.github/workflows/index.yml | 1 + .../context/github-action-indexer/src/index-manager.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/typescript-sdk/context/github-action-indexer/.github/workflows/index.yml b/examples/typescript-sdk/context/github-action-indexer/.github/workflows/index.yml index 40e755e..3758926 100644 --- a/examples/typescript-sdk/context/github-action-indexer/.github/workflows/index.yml +++ b/examples/typescript-sdk/context/github-action-indexer/.github/workflows/index.yml @@ -52,6 +52,7 @@ jobs: run: npm run index env: AUGMENT_API_TOKEN: ${{ secrets.AUGMENT_API_TOKEN }} + AUGMENT_API_URL: ${{ secrets.AUGMENT_API_URL }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} STORAGE_TYPE: file # Branch-specific state path (automatically determined from GITHUB_REF) diff --git a/examples/typescript-sdk/context/github-action-indexer/src/index-manager.ts b/examples/typescript-sdk/context/github-action-indexer/src/index-manager.ts index 7cb3ab2..2f3cb4b 100644 --- a/examples/typescript-sdk/context/github-action-indexer/src/index-manager.ts +++ b/examples/typescript-sdk/context/github-action-indexer/src/index-manager.ts @@ -18,7 +18,7 @@ const DEFAULT_MAX_FILES = 500; export class IndexManager { private readonly github: GitHubClient; - private readonly context: DirectContext; + private context: DirectContext; private readonly config: IndexConfig; private readonly statePath: string; @@ -373,7 +373,7 @@ export class IndexManager { try { // Create a new context from the previous state this.context = await DirectContext.importFromFile(tempStateFile, { - apiKey: this.config.apiKey, + apiKey: this.config.apiToken, apiUrl: this.config.apiUrl, }); } finally {