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 {