Skip to content

Commit d25f19b

Browse files
committed
Support for go work
Signed-off-by: sandhi <sagarwal@progress.com>
1 parent 343b40b commit d25f19b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/sbom.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,9 +334,13 @@ jobs:
334334
fi
335335
336336
# If repo uses a Go workspace, increase detector search depth so Detect finds
337-
# go.mod files inside module subdirectories (default depth 0 = root only = only Git found)
337+
# go.mod files inside module subdirectories (default depth 0 = root only = only Git found).
338+
# Also set accuracy.required=NONE: Detect's default HIGH accuracy check fails for multi-module
339+
# Go workspaces (FAILURE_ACCURACY_NOT_MET / exit 15) because it can't fully resolve the graph
340+
# via `go list` across workspace modules. Vendor mode resolves deps; accuracy=NONE lets it proceed.
338341
if [[ -f "go.work" ]]; then
339342
DETECT_ARGS="${DETECT_ARGS} --detect.detector.search.depth=${{ env.GO_WORK_DETECTOR_DEPTH }}"
343+
DETECT_ARGS="${DETECT_ARGS} --detect.accuracy.required=NONE"
340344
fi
341345
342346
echo "DETECT_ARGS=${DETECT_ARGS}" >> $GITHUB_ENV

0 commit comments

Comments
 (0)