Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Bertschy <[email protected]>
  • Loading branch information
matthyx committed Oct 1, 2024
1 parent 57b83c8 commit 552f0fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/services/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ func parseAuthorityFromServerAddress(serverAddress string) string {
return parsedURL.Host
}

func filterSBOM(sbom domain.SBOM, instanceID instanceidhandler.IInstanceID, wlid string, relevantFiles mapset.Set[string], labels map[string]string) (domain.SBOM, error) {
func filterSBOM(sbom domain.SBOM, instanceID instanceidhandler.IInstanceID, wlid string, relevantFiles []string, labels map[string]string) (domain.SBOM, error) {
name, err := instanceID.GetSlug(false)
if err != nil {
return domain.SBOM{}, fmt.Errorf("error getting slug from instance id: %w", err)
Expand Down Expand Up @@ -513,6 +513,8 @@ func filterSBOM(sbom domain.SBOM, instanceID instanceidhandler.IInstanceID, wlid
addedFileIDs := mapset.NewSet[string]()
addedRelationshipIDs := mapset.NewSet[string]()

// FIXME modify for <dynamic> paths

// filter relevant file list
for _, f := range sbom.Content.Files {
// the .location.realPath is not the ID of the file, that's why the map identifier is the ID and not the path
Expand Down

0 comments on commit 552f0fe

Please sign in to comment.