From cd747f37ca2e7631623185da57ef61852d7d36eb Mon Sep 17 00:00:00 2001 From: kotli Date: Tue, 11 May 2021 14:48:55 +0300 Subject: [PATCH] fix: missing reachability argument in analyzeGit function --- src/analysis.ts | 20 +++++++++++++++++++- src/interfaces/analysis-options.interface.ts | 1 + 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/analysis.ts b/src/analysis.ts index cb3e6de0..e277f54a 100644 --- a/src/analysis.ts +++ b/src/analysis.ts @@ -241,6 +241,7 @@ let analyzeFolderDefaults = { baseURL: defaultBaseURL, sessionToken: '', includeLint: false, + reachability: false, severity: AnalysisSeverity.info, symlinksEnabled: false, maxPayload: MAX_PAYLOAD, @@ -254,6 +255,7 @@ export async function analyzeFolders(options: FolderOptions): Promise { const analysisOptions: AnalyzeGitOptions = { ...analyzeGitDefaults, ...options }; - const { baseURL, sessionToken, oAuthToken, username, includeLint, severity, gitUri, sarif, source } = analysisOptions; + const { + baseURL, + sessionToken, + oAuthToken, + username, + includeLint, + reachability, + severity, + gitUri, + sarif, + source, + } = analysisOptions; const bundleResponse = await createGitBundle( { baseURL, @@ -439,6 +455,7 @@ export async function analyzeGit(options: GitOptions, requestOptions?: RequestOp oAuthToken, username, includeLint, + reachability, severity, bundleId, source, @@ -451,6 +468,7 @@ export async function analyzeGit(options: GitOptions, requestOptions?: RequestOp sessionToken, oAuthToken, includeLint, + reachability, severity, gitUri, ...analysisData, diff --git a/src/interfaces/analysis-options.interface.ts b/src/interfaces/analysis-options.interface.ts index 0adaed9e..0d50c554 100644 --- a/src/interfaces/analysis-options.interface.ts +++ b/src/interfaces/analysis-options.interface.ts @@ -4,6 +4,7 @@ export interface AnalysisOptions { baseURL: string; sessionToken: string; includeLint: boolean; + reachability: boolean; severity: AnalysisSeverity; sarif: boolean; source: string;