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
// if not, just discard this path, as it does not belong to the scoped artifact
930
931
parentArtifact:=reverseEdges[parentID]
931
932
iflen(parentArtifact) >1 {
932
-
panic("more than one parent, makes no sense")
933
+
slog.Warn("Info source has multiple parents, which should not happen in a well-formed graph. This may lead to incorrect path results.", "infoSourceID", parentID, "parentArtifacts", parentArtifact)
934
+
monitoring.Alert("info source has multiple parents in SBOM graph", fmt.Errorf("infoSourceID=%s parentArtifacts=%v", parentID, parentArtifact))
933
935
}
934
936
935
-
ifparentArtifact[0] !=g.ScopeID {
936
-
// this info source does not belong to the scoped artifact, discard path
0 commit comments