fix: Resolve parsing of packages from dependency path that start with @
requested to merge gitlab-community/security-products/analyzers/gemnasium:hotfix-pnpm-support into master
What does this MR do?
Fixed the regex for parsing dependency paths for pnpm lock files in the v6 format if a dependency path is for a scoped package the parsing of name, version failed due to the occurence of two at-symbols.
This ended up the SBOM file that gets generated would not have its name
-field
populated
What are the relevant issue numbers?
gitlab-org/gitlab#336809 (closed)
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Job definition updated, if necessary -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by Adam Cohen