-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
document query improvements #291
document query improvements #291
Conversation
This commit adds a --purl flag to document query to match the same one found in the outline subcommand Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
As the output from the query subcommand is mostly data, we remove the SPDX banner to make the output pipeable to other tools. Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
This commmit modifies the name filter to support full regular expressions insteand of just plain string matching. Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
This commit adds a new CSV printer to output query results to comma separated values Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
This commit adds a json printer to output data in structure format Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
This commit adds a new --format flag to select the retults printer to use Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
d831c32
to
904403c
Compare
/test pull-bom-verify |
This commit adds a new --fields flag to document query. This flag takes a list of fields to print out from elements matched by the query Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
This commmit modifies document query to detect data just as document outline, so now you can pipe an SBOM and just specify the query: cat sbom.spdx.json | bom document query name:log4j Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
Signed-off-by: Adolfo García Veytia (Puerco) <puerco@chainguard.dev>
c39d4e5
to
e21a0d0
Compare
After this one we should cut another release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cpanato, puerco The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR greatly improves the
document query
subcommand of bom to make it more versatile and useful. These are the new features:--purl
to output purls instead of names--format
--fields
flag controls which fields of the sbom will be printed on the query outputbom document query
and skip the filenameHere is an example showcasing the new features:
Which issue(s) this PR fixes:
NONE
Special notes for your reviewer:
/cc @cpanato
Does this PR introduce a user-facing change?