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

Filtering providers using the --provider-name option seems to result in no providers being selected #174

Open
westonsteimel opened this issue Sep 27, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@westonsteimel
Copy link
Contributor

westonsteimel commented Sep 27, 2023

Please provide a set of steps on how to reproduce the issue

grype-db build --provider-name alpine
[0000]  INFO grype-db version: 0.19.1
[0000]  INFO building database build-directory=./build providers=[] schema=5
[0000]  INFO database created path=build/vulnerability.db

What happened:

Passing any --provider-name flags seems to result in no providers being selected and therefore results in an empty database being built.

What you expected to happen:

grype-db build --provider-name alpine
[0000]  INFO grype-db version: 0.19.1
[0000]  INFO building database build-directory=./build providers=[alpine] schema=5
[0000]  INFO database created path=build/vulnerability.db

Anything else we need to know?:

I could have sworn I've used this before, but it seems not to work correctly in any release I've tried so far

Environment:

  • Output of grype-db version:
Application:        grype-db
Version:            0.19.1
BuildDate:          2023-08-25T15:39:14Z
GitCommit:          500c18af007c3899498560d576c9650ace5f5b8d
GitDescription:     v0.19.1
Platform:           darwin/arm64
GoVersion:          go1.20.7
Compiler:           gc
  • OS (e.g: cat /etc/os-release or similar):
@westonsteimel westonsteimel added the bug Something isn't working label Sep 27, 2023
@westonsteimel westonsteimel changed the title Filtering providers using the --provider-name option seems to no longer work Filtering providers using the --provider-name option seems to result in no providers being selected Sep 27, 2023
@westonsteimel
Copy link
Contributor Author

westonsteimel commented Sep 27, 2023

Ah, I forgot to add -g, so it wasn't generating a vunnel config

grype-db build --provider-name alpine -g works as expected

grype-db --provider-name github build -g
[0000]  INFO grype-db version: 0.19.1
[0001]  INFO building database build-directory=./build providers=[github] schema=5
[0005]  INFO database created path=build/vulnerability.db

willmurphyscode pushed a commit that referenced this issue Mar 27, 2024
Bumps [types-requests](https://github.com/python/typeshed) from 2.29.0.0 to 2.30.0.0.
- [Commits](https://github.com/python/typeshed/commits)

---
updated-dependencies:
- dependency-name: types-requests
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant