From 3d770368d35e24eaf6225cfbcffb8c3549cb2c17 Mon Sep 17 00:00:00 2001 From: Assaf Attias <49212512+attiasas@users.noreply.github.com> Date: Tue, 13 Aug 2024 14:20:47 +0300 Subject: [PATCH] Update Analyzer Manager to v1.8.13 (#142) --- jas/analyzermanager.go | 2 +- jas/common.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/jas/analyzermanager.go b/jas/analyzermanager.go index dee11947..717171d7 100644 --- a/jas/analyzermanager.go +++ b/jas/analyzermanager.go @@ -25,7 +25,7 @@ const ( EntitlementsMinVersion = "3.66.5" ApplicabilityFeatureId = "contextual_analysis" AnalyzerManagerZipName = "analyzerManager.zip" - defaultAnalyzerManagerVersion = "1.8.10" + defaultAnalyzerManagerVersion = "1.8.13" analyzerManagerDownloadPath = "xsc-gen-exe-analyzer-manager-local/v1" analyzerManagerDirName = "analyzerManager" analyzerManagerExecutableName = "analyzerManager" diff --git a/jas/common.go b/jas/common.go index a46e6db6..1b52d3ea 100644 --- a/jas/common.go +++ b/jas/common.go @@ -119,6 +119,9 @@ func ReadJasScanRunsFromFile(fileName, wd, informationUrlSuffix string) (sarifRu // Jas reports has only one invocation // Set the actual working directory to the invocation, not the analyzerManager directory // Also used to calculate relative paths if needed with it + if len(sarifRun.Invocations) == 0 { + sarifRun.Invocations = append(sarifRun.Invocations, sarif.NewInvocation().WithWorkingDirectory(sarif.NewArtifactLocation())) + } sarifRun.Invocations[0].WorkingDirectory.WithUri(wd) // Process runs values fillMissingRequiredDriverInformation(utils.BaseDocumentationURL+informationUrlSuffix, GetAnalyzerManagerVersion(), sarifRun)