Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upallow extracting CVEs from stdin #23
Comments
ryran
self-assigned this
Nov 4, 2016
ryran
added
the
enhancement
label
Nov 4, 2016
ryran
changed the title from
accept space- or newline-separated list of CVEs on stdin
to
allow extracting CVEs from stdin
Nov 4, 2016
added a commit
that referenced
this issue
Nov 4, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
ryran
Nov 4, 2016
Owner
DONE!
$ rhsecapi --help | grep -A4 stdin
-s, --extract-stdin Extract CVEs from stdin (CVEs will be matched by regex
'CVE-[0-9]{4}-[0-9]{4,}' and duplicates will be
discarded); note that auto-detection of terminal width
is not possible in this mode and defaults to a width
of '70' (this can be overridden with '--width' option)
|
DONE!
|
ryran
closed this
Nov 4, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ryran commentedNov 4, 2016
•
edited
We could also allow for finding CVEs in stdin, e.g.,
cat somefile.csv | rhsecapiwhich would use a regex likeCVE-[0-9]{4}-[0-9]{4,}to pull out any CVE numbers ...