Skip to content

armgit / Ix

Public Imported from GitHub
0

Understand any codebase instantly. System intelligence for codebases, built for humans and AI.

fix(ingest): GitHub ingest honours IX_PATCH_ACTOR too

Tanner Kocheradd6e00d347e
diff --git a/ix-cli/src/cli/commands/ingest.ts b/ix-cli/src/cli/commands/ingest.ts
index 47f9ff07..099df237 100644
--- a/ix-cli/src/cli/commands/ingest.ts
+++ b/ix-cli/src/cli/commands/ingest.ts
@@ -4092,7 +4092,9 @@ async function ingestGitHub(opts: {
const patch: GraphPatchPayload = {
patchId: deterministicId(`github://${repo.owner}/${repo.repo}:${since}:${Date.now()}`),
- actor: 'ix/github-ingest',
+ // IX_PATCH_ACTOR="" lets a kOS cloud backend stamp the verified principal
+ // (it 403s a non-empty actor that differs from it); see core-ingestion patchActor().
+ actor: process.env.IX_PATCH_ACTOR ?? 'ix/github-ingest',
timestamp: new Date().toISOString(),
source: {
uri: `github://${repo.owner}/${repo.repo}`,