Skip to content

Fix/SBOM graph scope path finding#1953

Merged
timbastin merged 4 commits into
mainfrom
fix/sbom-graph-scope-path-finding
May 12, 2026
Merged

Fix/SBOM graph scope path finding#1953
timbastin merged 4 commits into
mainfrom
fix/sbom-graph-scope-path-finding

Conversation

@refoo0
Copy link
Copy Markdown
Member

@refoo0 refoo0 commented May 12, 2026

No description provided.

refoo0 added 3 commits May 12, 2026 09:37
Signed-off-by: rafi <refaei.shikho@hotmail.com>
…omponent parents

Signed-off-by: rafi <refaei.shikho@hotmail.com>
Signed-off-by: rafi <refaei.shikho@hotmail.com>
Copilot AI review requested due to automatic review settings May 12, 2026 08:23
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts SBOM graph analysis and path-finding behavior to better respect artifact scoping when computing component-only dependency paths to a target PURL.

Changes:

  • Updated FindAllComponentOnlyPathsToPURL to terminate only at info-source nodes and to filter paths to the currently-scoped artifact.
  • Simplified ComponentsWithMultipleSources by removing scope reset/restore logic and narrowing its doc comment to SBOM-only sources.
  • Added a regression test covering scope isolation when two artifacts share the same vulnerable dependency.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
normalize/sbom_graph.go Changes path-finding termination/scoping logic and adjusts multi-source component detection behavior.
normalize/sbom_graph_test.go Adds a regression test ensuring scoped path-finding doesn’t return paths from other artifacts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread normalize/sbom_graph.go
Comment thread normalize/sbom_graph.go
Comment thread normalize/sbom_graph.go
Comment thread normalize/sbom_graph.go
…lnerabilities

Signed-off-by: rafi <refaei.shikho@hotmail.com>
@timbastin timbastin merged commit c355207 into main May 12, 2026
9 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants