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

Third party dependencies contextual analysis for npm #941

Merged

Conversation

EyalDelarea
Copy link
Contributor

@EyalDelarea EyalDelarea commented Sep 10, 2023

  • All tests passed. If this feature is not already covered by the tests, I added new tests.
  • All static analysis checks passed.
  • This pull request is on the dev branch.
  • I used gofmt for formatting the code before submitting the pull request.

When enabling the new flag of the CLI : third-party-contextual-analysis
The applicability scanner will run on the environments folders as well. ( node_modules etc...)

In this case we will need to exclude the reported applicabilities which originated from the impacted source package.

For example: protobufjs CVE applicability was found:
applicability location is inside node_modules/protobufjs -> disqualify
Other use case:
applicability location is inside node_modules/someOtherDep -> valid.

@@ -19,8 +19,12 @@ import (
"gopkg.in/yaml.v3"
)

const (
NodeModulesPattern = "**/*node_modules*/**"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
NodeModulesPattern = "**/*node_modules*/**"
nodeModulesPattern = "**/*node_modules*/**"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

been used from applicablitymanager.go so has to be public

@EyalDelarea EyalDelarea temporarily deployed to frogbot September 13, 2023 14:08 — with GitHub Actions Inactive
@github-actions
Copy link
Contributor


@EyalDelarea EyalDelarea changed the title Third party contextual analysis for npm Third party dependencies contextual analysis for npm Sep 13, 2023
@EyalDelarea EyalDelarea merged commit 739e5b3 into jfrog:dev Sep 13, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Automatically generated release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants