vet
to SafeDep Cloud for centralized analysis, reporting, and policy management. Data synchronization enables organization-wide visibility into security findings across all projects.
Sync Methods
vet CLI
Direct integration using command-line interface
vet-action
GitHub Actions workflow integration
Using vet CLI
Prerequisites
Configurevet
to authenticate with SafeDep Cloud. See quickstart guide for onboarding and authentication setup.
The
--report-sync
flag enables data synchronization to SafeDep Cloud.Basic Synchronization
Sync scan results with project identification:Parameters
--report-sync-project
: Project identifier (typically repository name)--report-sync-project-version
: Project version (branch, tag, or commit)
Directory Scanning with Sync
Scan entire repositories and sync results:Multiple Manifest Sync
Sync results from scanning multiple manifest files:Advanced Sync Configurations
Environment-Based Sync
Differentiate between environments using project versions:- Production
- Staging
- Development
Conditional Sync with Policies
Sync only when policy violations are found:Batch Processing
Sync multiple projects in a script:GitHub Actions Integration
Basic vet-action Configuration
Enable cloud sync in your GitHub workflow:Advanced GitHub Actions Configuration
Project Identification
vet-action automatically uses repository information for project identification:- Project Name:
${{ github.repository }}
(e.g.,org/repo
) - Project Version:
${{ github.ref_name }}
(branch or tag name)
CI/CD Platform Integration
GitLab CI
Jenkins Pipeline
Azure DevOps
Data Synchronization Details
What Gets Synced
Package Information
Package Information
- All discovered packages and versions
- Dependency relationships and metadata
- Package manifest locations and types
Security Findings
Security Findings
- Vulnerability information and severity levels
- OpenSSF Scorecard metrics
- License compliance data
- Malware analysis results (if enabled)
Policy Violations
Policy Violations
- Policy rule violations and details
- Filter expression results
- Exception applications and status
Project Context
Project Context
- Project identification and versioning
- Scan timestamps and environment info
- Git commit information (when available)
Sync Frequency
- On-demand: Manual scans using CLI
- CI/CD triggered: Automated scans on code changes
- Scheduled: Regular scans via cron or scheduled workflows
- Event-driven: Scans triggered by specific events
Querying Synced Data
Once data is synced to SafeDep Cloud, query it using the cloud interface:Best Practices
Project Naming
Project Naming
Use consistent project naming conventions:
- Include organization:
org/project-name
- Use repository URLs for uniqueness
- Maintain consistency across teams
Version Management
Version Management
Use meaningful version identifiers:
- Branch names for development branches
- Semantic versions for releases
- Environment identifiers (prod, staging, dev)
Sync Strategy
Sync Strategy
Optimize sync frequency and scope:
- Sync on every main branch commit
- Include pull request scans for early detection
- Use scheduled scans for comprehensive analysis
Troubleshooting
Sync Failures
Sync Failures
If data sync fails:
- Verify API key and tenant configuration
- Check network connectivity to SafeDep Cloud
- Ensure project names donβt contain invalid characters
Missing Data
Missing Data
If expected data doesnβt appear in SafeDep Cloud:
- Confirm the sync flags are properly set
- Check that the scan completed successfully
- Verify the project and version identifiers
Authentication Issues
Authentication Issues
If authentication fails during sync:
- Verify API key has sync permissions
- Check tenant domain configuration
- Ensure credentials are properly set in CI/CD