From 1efc987d0afde3128c92912be81d5ab6a5b70081 Mon Sep 17 00:00:00 2001 From: Zvi Grinberg Date: Mon, 30 Oct 2023 16:38:35 +0200 Subject: [PATCH] fix: opts object is not taken into account when checking setting MATCH_MANIFEST_VERSIONS Signed-off-by: Zvi Grinberg --- src/providers/golang_gomodules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/golang_gomodules.js b/src/providers/golang_gomodules.js index 6c020a2..910dc1c 100644 --- a/src/providers/golang_gomodules.js +++ b/src/providers/golang_gomodules.js @@ -288,7 +288,7 @@ function getSBOM(manifest, opts = {}, includeTransitive) { let sbom = new Sbom(); let rows = goGraphOutput.split(EOL); let root = getParentVertexFromEdge(rows[0]) - let matchManifestVersions = getCustom("MATCH_MANIFEST_VERSIONS","false"); + let matchManifestVersions = getCustom("MATCH_MANIFEST_VERSIONS","false",opts); if(matchManifestVersions === "true") { { performManifestVersionsCheck(root, rows, manifest)