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

osv-scanner used as a library with more reliable filtering #103

Merged
merged 13 commits into from
Apr 5, 2023

Conversation

briangann
Copy link
Collaborator

@briangann briangann commented Mar 14, 2023

This adds a revamped osv-scanner that calls the latest version (1.2.0) as a library instead of spawning a process.

Filtering has also been modified to auto-detect issues attributed to @grafana/* packages, without enumerating any of the details. This is effectively a generic/automated allow list no matter which version of the grafana packages are used.

The old spawned method has been removed

  • Removes external dependency spawning osv-scanner
  • Update documentation
  • Remove osv-scanner binary from build process
  • Migrate all tests from previous method

@briangann briangann requested review from academo and jackw March 14, 2023 01:52
@briangann briangann marked this pull request as draft March 14, 2023 01:54
@briangann briangann marked this pull request as ready for review March 31, 2023 14:06
@briangann briangann added the enhancement New feature or request label Mar 31, 2023
Copy link
Member

@academo academo left a comment

Choose a reason for hiding this comment

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

Thanks for the work you put on this one @briangann !

We should follow up this with a packageJson.lock scanning and protection since there are plugins using npm or pnpm and we are about to introduce support for them here grafana/plugin-tools#226

@briangann briangann merged commit eb61707 into main Apr 5, 2023
@briangann briangann deleted the 20230308_update_osv branch April 5, 2023 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants