Skip to content

Homebrew improvement #1619

@Avgor46

Description

@Avgor46

Hi!

Homebrew package in the SBOM is represented only by name, version, and PURL. The PURL, which looks like pkg:brew/package-name@version, does not provide enough information for vulnerability scanning. If possible, we could generate a Git repository URL for them. Homebrew packages are supplied with an sbom.spdx.json file that contains a downloadedLocation field, which is often a gitlab or github link to the source. The .rb file could also be parsed, as in Syft, to find the "url" entry.

Additional Git information could help for scanning brew packages since we can potentially query osv.dev with Git repo URL and tag to find vulnerabilities.

This could be implemented via generating generic github PURLs for brew packages if possible. Alternatively, we could add downloadedLocation field to package metadata and implement an annotator that parses it and creates source code identifiers.

Original issue.

Assign the issue to me if it is reasonable to implement such feature)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions