Skip to content

Support include and ignore SBOM lists in the same scan request #80

Open

Description

@mscasso-scanoss

Summary

/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 -s or -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
  • BOM rules (include / ignore) inside scanoss-settings.

Then write both temp files and pass -s <include> -b <ignore> to the engine.

Activity

  1. added
    enhancement
    on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions