From 0e0dc90a6243b7e9c86728c25a5e904bceaa5d49 Mon Sep 17 00:00:00 2001 From: Taylor Date: Thu, 26 Oct 2023 13:59:29 -0700 Subject: [PATCH] Update checkovRunner.ts --- src/checkov/checkovRunner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/checkov/checkovRunner.ts b/src/checkov/checkovRunner.ts index 891a38d..94b8c3b 100644 --- a/src/checkov/checkovRunner.ts +++ b/src/checkov/checkovRunner.ts @@ -79,7 +79,7 @@ export const runCheckovScan = (logger: Logger, checkovInstallation: CheckovInsta const skipFrameworkParams: string[] = skipFrameworks ? ['--skip-framework', skipFrameworks.join(' ')] : []; const workingDir = vscode.workspace.rootPath; getGitRepoName(logger, vscode.window.activeTextEditor?.document.fileName).then((repoName) => { - const repoIdParams = repoName ? ['--repo-id', repoName] : []; + const repoIdParams = repoName ? ['--repo-id', repoName] : ['--repo-id', 'vscode/default']; const checkovArguments: string[] = [...dockerRunParams, ...certificateParams, ...bcIdParam, ...noCertVerifyParam, '-s', '--bc-api-key', token, ...repoIdParams, ...filePathParams, ...skipCheckParam, '-o', 'json', ...pipRunParams, ...externalChecksParams, ...frameworkParams, ...skipFrameworkParams]; logger.info('Running checkov:');