Skip to content
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

govulncheck integration #198

Merged
merged 54 commits into from
Feb 27, 2023
Merged

Conversation

another-rex
Copy link
Collaborator

@another-rex another-rex commented Feb 8, 2023

An initial attempt at integrating govulncheck's library with OSV-Scanner.

TODOs before full PR:

- [ ] Add config options after design doc is finalized
- [ ] Allow user to configure tags and go versions

  • Update table output for inactive/not called vulnerabilities
  • Update exit code for not called vulnerabilities
  • Update README with feature and the go dependency if they want the vulncheck feature
  • Add go as dependency into osv-scanner docker containers.

@another-rex another-rex requested review from oliverchang and removed request for oliverchang February 9, 2023 04:09
@another-rex another-rex force-pushed the govulncheck-integration branch from 0d6bd0e to e60dbd4 Compare February 10, 2023 00:35
cmd/osv-scanner/main.go Outdated Show resolved Hide resolved
internal/govulncheckshim/client.go Outdated Show resolved Hide resolved
internal/govulncheckshim/client.go Outdated Show resolved Hide resolved
internal/govulncheckshim/client.go Outdated Show resolved Hide resolved
internal/govulncheckshim/vulncheckshim.go Outdated Show resolved Hide resolved
@oliverchang
Copy link
Collaborator

@another-rex is this still a draft, or is it ready for closer review?

@another-rex
Copy link
Collaborator Author

Still a draft at the moment, should be ready by end of today though.

if err != nil {
return nil, err
}
vpkgs := vulncheck.Convert(pkgs)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zpavlinovic Just want to confirm that this function and the returned vulncheck.Package will still be available (possibly migrated into govulncheck) after vulncheck goes internal/private?

Copy link
Collaborator

@oliverchang oliverchang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!! Some hopefully final comments

internal/sourceanalysis/sourceanalysis.go Outdated Show resolved Hide resolved
internal/sourceanalysis/sourceanalysis.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@oliverchang oliverchang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one last comment!

internal/sourceanalysis/sourceanalysis.go Outdated Show resolved Hide resolved
@oliverchang
Copy link
Collaborator

@julieqiu FYI

Copy link
Collaborator

@oliverchang oliverchang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with some nits

internal/testutility/utility.go Outdated Show resolved Hide resolved
internal/testutility/utility.go Outdated Show resolved Hide resolved
internal/testutility/utility.go Outdated Show resolved Hide resolved
@another-rex another-rex merged commit 09e781b into google:main Feb 27, 2023
hayleycd pushed a commit that referenced this pull request Mar 9, 2023
An initial attempt at integrating govulncheck's library with
OSV-Scanner.

TODOs before full PR:

~~- [ ] Add config options after design doc is finalized~~
~~- [ ] Allow user to configure tags and go versions~~
- [x] Update table output for inactive/not called vulnerabilities
- [x] Update exit code for not called vulnerabilities
- [x] Update README with feature and the go dependency if they want the
vulncheck feature
- [x] Add go as dependency into osv-scanner docker containers.
julieqiu pushed a commit to julieqiu/osv-scanner that referenced this pull request May 2, 2023
An initial attempt at integrating govulncheck's library with
OSV-Scanner.

TODOs before full PR:

~~- [ ] Add config options after design doc is finalized~~
~~- [ ] Allow user to configure tags and go versions~~
- [x] Update table output for inactive/not called vulnerabilities
- [x] Update exit code for not called vulnerabilities
- [x] Update README with feature and the go dependency if they want the
vulncheck feature
- [x] Add go as dependency into osv-scanner docker containers.
julieqiu pushed a commit to julieqiu/osv-scanner that referenced this pull request May 2, 2023
An initial attempt at integrating govulncheck's library with
OSV-Scanner.

TODOs before full PR:

~~- [ ] Add config options after design doc is finalized~~
~~- [ ] Allow user to configure tags and go versions~~
- [x] Update table output for inactive/not called vulnerabilities
- [x] Update exit code for not called vulnerabilities
- [x] Update README with feature and the go dependency if they want the
vulncheck feature
- [x] Add go as dependency into osv-scanner docker containers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants