Configuration Priority
Settings are applied in the following priority order (highest to lowest):- Command-line flags (e.g.,
--api-key,--scanner) - Environment variables (e.g.,
SCANOSS_API_KEY) - Config file (
~/.scanoss/crypto-finder/config.json) - Project settings (
scanoss.jsonin target directory) - Default values
Application Configuration
Config File Location
Setting Up Configuration
Use theconfigure command to set persistent application settings:
Config File Format
Environment Variables
| Variable | Description | Example |
|---|---|---|
SCANOSS_API_KEY | SCANOSS API key for remote rulesets | export SCANOSS_API_KEY=abc123 |
SCANOSS_API_URL | Custom API base URL | export SCANOSS_API_URL=https://custom.com |
Project Configuration (scanoss.json)
Thescanoss.json file in your project directory configures scan behaviour and skip patterns.
File Location
Placescanoss.json in the root of the directory you are scanning:
Configuration Schema
Crypto Finder follows the SCANOSS Settings Schema.Basic Example
max_file_sizeis specified in bytes. The value10485760corresponds to 10 MB.
Skip Patterns
Skip patterns control which files and directories are excluded from scanning.Default Skip Patterns
The following patterns are excluded automatically: Version control:.git/.svn/.hg/.bzr/
node_modules/vendor/venv/virtualenv/__pycache__/
dist/build/target/*.min.js*.min.css
*.zip*.tar*.tar.gz*.tar.bz2*.jar*.war*.ear
*.exe*.dll*.so*.dylib*.bin
Custom Skip Patterns
Pattern Types
- Directory patterns (end with
/):
- File extension patterns:
- Specific file patterns:
- Path patterns:
Size Limits
Configure the maximum file size to scan:max_file_sizeis specified in bytes. The value10485760corresponds to 10 MB.
Advanced Configuration Examples
Monorepo Configuration
For large monorepos with multiple subprojects:JavaScript/TypeScript Project Configuration
For projects using Node.js-based tooling:Java/Python/Go Project Configuration
For compiled or interpreted backend projects:CI/CD Configuration
Excludes tests and generated artefacts to reduce scan scope in automated pipelines:Scanner Configuration
Choosing a Scanner
Crypto Finder supports multiple scanners. Select a scanner using the--scanner flag:
--scanner: opengrep, semgrep.
Language Detection
Automatic Detection
By default, Crypto Finder uses go-enry to detect the programming languages present in a project automatically.Manual Override
Override detected languages when needed:Supported Languages
The scanner includes rules for:- C/C++
- C#
- Go
- Java
- JavaScript/TypeScript
- Kotlin
- PHP
- Python
- Ruby
- Rust
- Swift
Timeout Configuration
Default Timeout
Default scan timeout: 10 minutesCustom Timeout
Recommended Timeouts
| Project size | Recommended timeout |
|---|---|
| Small (<1,000 files) | 5m |
| Medium (1,000–10,000 files) | 15m |
| Large (10,000–50,000 files) | 30m |
| Very large (>50,000 files) | 1h+ |
Output Configuration
Output Destination
Output Format
SCANOSS Interim JSON is an internal format used by the SCANOSS toolchain. Use cyclonedx for interoperability with third-party tools that support the CycloneDX CBOM specification.