Prerequisites
Ensurescanoss-py is installed:
Getting Started
Initial Discovery Scan
Run a comprehensive scan to discover all components in your project:-Dor--dependencies: Enable dependency detection-o results.json: Output file for scan results/path/to/folder: Scan the specified folder. You can use.to scan the current directory.
scanoss.json file to discover all components in your project.
Identify Undeclared Components
Inspect the scan results to find components not yet declared in your configuration:Create scanoss.json Configuration
Create a scanoss.json file in the same directory you’re scanning to declare approved components:
Rescan with Configuration
Apply your configuration by rescanning with the settings file:Validate Compliance
After scanning with your configuration, verify that all components are properly declared:scanoss.json.
Advanced Context Rules
Path-Specific Restrictions
Restrict components to specific directories in your project:Version Upgrade Management
Enforce version upgrades or library replacements:License Compliance Configuration
Based on the mixed licenses detected in your scan:scanoss.json files: SCANOSS Settings Documentation