vet must enrich each package by querying the Insights API. Because filtering and reporting can run many times on the same manifest, you can dump the enriched data as JSON once and reload it for subsequent operations.
Query Workflow
The BYOQ workflow consists of two main phases:1
Data Collection
Scan and enrich package data, then dump to JSON files for reuse
2
Analysis & Reporting
Load enriched data for fast filtering, querying, and report generation
Phase 1: Dump Enriched JSON Manifests
Collect and enrich package data, then save to a directory for reuse:The JSON dump contains all enriched metadata including vulnerabilities, scorecard data, licenses, and project information.
Phase 2: Load and Query Enriched Metadata
Use the dumped data for fast filtering and reporting:Security Guardrails with Filters
Implement security guardrails in CI/CD pipelines using the--filter-fail argument, which causes the command to fail if any package matches the given filter.
Example: Fail Build on Unmaintained Packages
Advanced Query Examples
Multi-Criteria Security Checks
License Compliance Checks
Risk Assessment Queries
Filtering
The CEL filter input schema and syntax.
Policy as Code
Turn these filters into reusable policy files.
Exceptions
Generate exception lists from query results.
SafeDep Cloud SQL
Query synced data across your org.

