You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support include and ignore SBOM lists in the same scan request #80
/scan/direct accepts a single type + assets pair per request, so a client can send either an identify (include) list or a blacklist (ignore) list, but not both. The engine already supports -s and -b in the same run. Supporting both in the API would let clients send include and ignore rules together.
Context
Clients such as scanoss.java (and ORT on top of it) often have include and ignore rules at the same time. ORT always sends its covered packages as include rules. Today the client has to pick one list, which caused ignore rules to be silently dropped (scanoss/scanoss.java#47, downstream scanoss/engine#120).
Current behaviour
getConfigFromRequest reads a single type and assets (form value or header).
When building the engine args, the API passes -sor-b, depending on type.
The scanoss-settings header only carries ranking/snippet settings (ranking_enabled, ranking_threshold, min_snippet_hits, min_snippet_lines, honour_file_exts).
Engine check (5.4.27)
Engine args
Result
-s include.json
match pkg:golang/github.com/nordic-institute/x-road
-s include.json -b ignore.json
none (ignore applied, include kept)
Proposal
Accept an ignore list alongside the existing identify list, keeping backward compatibility with type + assets. For example:
a new form field / header (e.g. ignore_assets) mapped to -b, or
Activity