-
Notifications
You must be signed in to change notification settings - Fork 66
add support for extensions purl #551
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
Conversation
vet Summary ReportThis report is generated by vet Policy Checks
Malicious Package AnalysisMalicious package analysis was performed using SafeDep Cloud API Malicious Package Analysis Report
Changed PackagesChanged Packages
Policy ViolationsPackages Violating Policy[Go]
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for VS Code and OpenVSX extensions in package URL (PURL) parsing and scanning functionality. It enables the tool to handle extension-specific PURL formats for both inspection and scanning operations.
Key changes:
- Added PURL type mappings for VS Code extensions (
vscode
,vsx
,vsix
) and OpenVSX extensions (openvsx
) - Enhanced test coverage for the new extension PURL formats
- Updated dependency version for
safedep/dry
library
Reviewed Changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
pkg/common/purl/purl.go | Added PURL type mappings for VS Code and OpenVSX extension ecosystems |
pkg/common/purl/purl_test.go | Added comprehensive test cases for new extension PURL formats |
go.mod | Updated safedep/dry dependency to newer version |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Sahil Bansal <bansalsahil315@gmail.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #551 +/- ##
=====================================
Coverage 8.34% 8.35%
=====================================
Files 280 280
Lines 45969 45973 +4
=====================================
+ Hits 3835 3839 +4
Misses 41856 41856
Partials 278 278 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Add supports for
openvsx
in inspect cmd:vet inspect malware --purl pkg:/openvsx/streetsidesoftware.code-spell-checker@4.0.47
vet scan
:vet scan --purl pkg:/vscode/streetsidesoftware.code-spell-checker@4.0.47