Skip to content

Conversation

Sahilb315
Copy link
Contributor

Add supports for

  • openvsx in inspect cmd: vet inspect malware --purl pkg:/openvsx/streetsidesoftware.code-spell-checker@4.0.47
  • scanning VS Code & OpenVSX extensions through vet scan: vet scan --purl pkg:/vscode/streetsidesoftware.code-spell-checker@4.0.47

Copy link

vet Summary Report

This report is generated by vet

Policy Checks

  • ✅ Vulnerability
  • ✅ Malware
  • ✅ License
  • ❌ Popularity
  • ✅ Maintenance
  • ✅ Security Posture
  • ✅ Threats

Malicious Package Analysis

Malicious package analysis was performed using SafeDep Cloud API

Malicious Package Analysis Report
Ecosystem Package Version Status Report
ECOSYSTEM_GO github.com/safedep/dry 0.0.0-20250716064316-9afa8962ced6 🔗
  • ℹ️ 1 packages have been actively analyzed for malicious behaviour.
  • ✅ No malicious packages found.
Changed Packages

Changed Packages

  • ⚠️ [Go] github.com/safedep/dry@0.0.0-20250716064316-9afa8962ced6
Policy Violations

Packages Violating Policy

[Go] github.com/safedep/dry@0.0.0-20250716064316-9afa8962ced6 🔗

  • ➡️ Found in manifest go.mod
  • ⚠️ Component popularity is low by Github stars count
  • ⚡ Use an alternative package that is popular

@Sahilb315 Sahilb315 requested a review from Copilot July 29, 2025 17:21
Copy link
Contributor

@Copilot Copilot AI left a 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>
@Sahilb315 Sahilb315 requested review from abhisek and KunalSin9h July 29, 2025 17:22
Copy link

codecov bot commented Jul 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 8.35%. Comparing base (742365b) to head (6f155eb).
⚠️ Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@abhisek abhisek merged commit e68ead1 into main Jul 30, 2025
10 of 11 checks passed
@abhisek abhisek deleted the feat/add-extensions-purl-support branch July 30, 2025 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants