# License Analysis in Component Scanning

## Overview

Understanding the licenses of third-party components is essential for maintaining compliance and avoiding unintended legal obligations. In particular, restrictive licenses may impose requirements that are incompatible with proprietary software distribution.

To address this, the platform supports **license-aware analysis**, enabling guardrails to detect and block the use of components with disallowed licenses during dependency or project scans

### Scope and Compatibility

The license-based guardrail condition applies consistently across **Software Composition Analysis (SCA)** and any other component-based risk type where license information exists. It does not affect non-component analyses or guardrails that are unrelated to licensing.

### **Enabling License Analysis**

License data can be explicitly included in the analysis by using the following CLI parameter:

```
--include-license-analysis
```

This parameter is available for the `deps` and `scan` commands.&#x20;

When `--include-license-analysis` is used:

* License information is requested from the server for all detected components.
* License data is included in the analysis results.
* When combined with the `-o` option, license data is also included in the generated JSON report


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.xygeni.io/xygeni-products/open-source-security-oss/license-analysis-in-component-scanning.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
