Skip to content

Commit

Permalink
fix: Don't propagate API key to scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
kgilpin committed Aug 25, 2023
1 parent 694feea commit 20f09c1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/services/scanProcessWatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ export default class ScanProcessWatcher extends ProcessWatcher {

protected async loadEnvironment(): Promise<NodeJS.ProcessEnv> {
const env = await super.loadEnvironment();
const accessToken = await this.accessToken();
if (accessToken) {
env.APPMAP_API_KEY = accessToken;
}
// KEG: Disable for now, seems to be breaking the scanner, possibly because the
// remote domain is renamed from app.land to getappmap.com.
// const accessToken = await this.accessToken();
// if (accessToken) {
// env.APPMAP_API_KEY = accessToken;
// }
return env;
}
}

0 comments on commit 20f09c1

Please sign in to comment.