-
Notifications
You must be signed in to change notification settings - Fork 108
hack: add govulncheck wrapper with ignore list support #595
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
base: main
Are you sure you want to change the base?
Conversation
|
/hold |
|
/cc @bradmwilliams |
Add a wrapper script that runs govulncheck and filters out vulnerabilities that have no available fix. The script: - Uses govulncheck JSON output for reliable parsing - Only flags vulnerabilities where code calls the vulnerable function - Ignores listed vulnerabilities only if no fix is available - Automatically flags when a fix becomes available Includes configuration file with current unfixable vulnerabilities in openshift/hive and tektoncd/pipeline dependencies.
9a21ca2 to
69779d4
Compare
bradmwilliams
left a comment
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.
Are you going to add the same script to our other repos as well?
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AlexNPavel, bradmwilliams The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@AlexNPavel: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
That's my current plan. I would prefer to have it shared somewhere so we don't have to worry about updating all repos if we want to change something, but I'm not sure of a way to cleanly do that right now. |
Summary
hack/govulncheck-wrapper.sh) that runs govulncheck with support for ignoring vulnerabilities that have no available fixmake vulnchecktargetTest plan
make vulncheckand verify it passes./hack/govulncheck-wrapper.sh --verboseand verify output shows ignored vulnerabilities./hack/govulncheck-wrapper.sh --helpand verify usage is displayed