> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scanoss.com/llms.txt
> Use this file to discover all available pages before exploring further.

# License Dataset

> Component identification and license compliance tools.

The License Dataset covers everything related to detecting open source code in your project and staying compliant with its licenses: finding undeclared components and code snippets, generating a Software Bill of Materials (SBOM), and configuring how SCANOSS scans your code in the first place.

## What Do You Need?

```mermaid theme={null}
graph TD
    LicenseStart[License Dataset<br/>What do you need?]

    LicenseStart --> Snippet[Detect Undeclared Code<br/>& Snippets]
    LicenseStart --> SBOM[Generate Software<br/>Bill of Materials]
    LicenseStart --> Config[Configure Scanning<br/>Behavior]

    %% Snippet Detection Branch
    subgraph SnippetTools["Snippet Detection Tools"]
        direction LR
        PreCommit[Pre-Commit Hooks]
        PY_Snippet[SCANOSS-PY]
        CC_Snippet[SCANOSS-CC]
        GHA_Snippet[GitHub Actions]
    end

    Snippet --> SnippetTools

    %% SBOM Creation Branch
    subgraph SBOMTools["SBOM Creation Tools"]
        direction LR
        PY_SBOM[SCANOSS-PY]
        Workbench[SBOM Workbench]
        GHA_SBOM[GitHub Actions]
    end

    SBOM --> SBOMTools

    %% Configuration Branch
    subgraph ConfigTools["Configuration Options"]
        direction LR
        Settings[SCANOSS Settings]
        ScanAccuracy[Improving Scan Accuracy]
    end

    Config --> ConfigTools

    style LicenseStart fill:#66BB6A,stroke:#43A047,stroke-width:3px,color:#fff
    style Snippet fill:#81C784,stroke:#66BB6A,stroke-width:2px,color:#fff
    style SBOM fill:#81C784,stroke:#66BB6A,stroke-width:2px,color:#fff
    style Config fill:#81C784,stroke:#66BB6A,stroke-width:2px,color:#fff

    style SnippetTools fill:#C8E6C9,stroke:#81C784,stroke-width:2px,color:#000
    style SBOMTools fill:#C8E6C9,stroke:#81C784,stroke-width:2px,color:#000
    style ConfigTools fill:#C8E6C9,stroke:#81C784,stroke-width:2px,color:#000

    style PreCommit fill:#A5D6A7,stroke:#81C784,stroke-width:2px,color:#000
    style PY_Snippet fill:#A5D6A7,stroke:#81C784,stroke-width:2px,color:#000
    style CC_Snippet fill:#A5D6A7,stroke:#81C784,stroke-width:2px,color:#000
    style GHA_Snippet fill:#A5D6A7,stroke:#81C784,stroke-width:2px,color:#000

    style PY_SBOM fill:#A5D6A7,stroke:#81C784,stroke-width:2px,color:#000
    style Workbench fill:#A5D6A7,stroke:#81C784,stroke-width:2px,color:#000
    style GHA_SBOM fill:#A5D6A7,stroke:#81C784,stroke-width:2px,color:#000

    style Settings fill:#A5D6A7,stroke:#81C784,stroke-width:2px,color:#000
    style ScanAccuracy fill:#A5D6A7,stroke:#81C784,stroke-width:2px,color:#000

    click PreCommit "/en/latest/integrations/pre-commit-hooks" "Pre-Commit Hooks" _blank
    click PY_Snippet "/en/latest/cli/scanoss-py/installation" "SCANOSS-PY" _blank
    click CC_Snippet "/en/latest/clients/code-compare" "SCANOSS-CC" _blank
    click GHA_Snippet "/en/latest/integrations/github-actions" "GitHub Actions" _blank

    click PY_SBOM "/en/latest/cli/scanoss-py/installation" "SCANOSS-PY" _blank
    click Workbench "/en/latest/clients/workbench/installation-quick-start" "SBOM Workbench" _blank
    click GHA_SBOM "/en/latest/integrations/github-actions" "GitHub Actions" _blank

    click Settings "/en/latest/getting-started/declaring-components" "SCANOSS Settings" _blank
    click ScanAccuracy "/en/latest/poc/evaluation/improving-scan-accuracy" "Improving Scan Accuracy"
```

## Detect Undeclared Code & Snippets

Identify open source components and code snippets in your codebase to ensure license compliance and transparency.

| Tool                                                                                    | Best For                                                                                                               |
| --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| <a href="/en/latest/integrations/pre-commit-hooks" target="_blank">Pre-Commit Hooks</a> | Catching compliance issues automatically before every commit                                                           |
| <a href="/en/latest/cli/scanoss-py/installation" target="_blank">SCANOSS-PY</a>         | Terminal-based scanning with dependency analysis                                                                       |
| <a href="/en/latest/clients/code-compare" target="_blank">SCANOSS-CC</a>                | A desktop app with side-by-side code comparison, keyboard shortcuts, and component identification                      |
| <a href="/en/latest/integrations/github-actions" target="_blank">GitHub Actions</a>     | Scanning on push or pull request, commenting on PRs with detected snippets, and enforcing compliance policies in CI/CD |

Once you're scanning, <a href="/en/latest/getting-started/understanding-scan-results" target="_blank">Understanding Scan Results</a> walks through the full `results.json` structure, including what the match percentage means.

## Generate Software Bill of Materials (SBOM)

Create comprehensive inventories of all software components, dependencies and licenses in your projects.

| Tool                                                                                               | Best For                                                                               |
| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| <a href="/en/latest/cli/scanoss-py/installation" target="_blank">SCANOSS-PY</a>                    | Generating SBOMs from the command line, with dependency detection                      |
| <a href="/en/latest/clients/workbench/installation-quick-start" target="_blank">SBOM Workbench</a> | Visual component identification, license analysis, and export to multiple SBOM formats |
| <a href="/en/latest/integrations/github-actions" target="_blank">GitHub Actions</a>                | Automatically generating SBOMs on push or pull request, stored as workflow artifacts   |

## Configure Scanning Behavior

Customise how SCANOSS scans your code and manages component detection.

| Option                                                                                         | Best For                                                                                                            |
| ---------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| <a href="/en/latest/getting-started/declaring-components" target="_blank">SCANOSS Settings</a> | Controlling scanning scope, skipping files or directories, and managing your component BOM (include/remove/replace) |
| [Improving Scan Accuracy](/en/latest/poc/evaluation/improving-scan-accuracy)                   | Providing scan context and tuning snippet matching to improve accuracy                                              |

Need help? [Contact our AI assistant](?assistant=open)
