Qodana License Audit helps to avoid problems with incompatible third-party licenses in software projects. The tool is easy to integrate into existing CI pipelines.
Table of Contents
Input parameters:
project-dir
- Project folder to inspect (default${{ github.workspace }}
)results-dir
- Save results to folder (default${{ github.workspace }}/qodana
)options
– Image environment options (default – empty)
- name: Qodana - License Audit
uses: JetBrains/qodana-license-audit-action@v2.0-eap
All action's inputs are optional.
- name: Qodana - License Audit
uses: JetBrains/qodana-license-audit-action@v2.0-eap
with:
project-dir: ${{ github.workspace }}
results-dir: ${{ github.workspace }}/qodana
options: PYTHON_VERSION=3.8.10 PHP_VERSION=7.4.16
Before you begin, view the list of Supported Technologies. For the full documentation of the action's inputs, see action.yaml.
An example of the Qodana License Audit command-line summary output:
1/4 Gathering project metadata...
┏━━━━━━━━━━━━━━━━━━━━┳━━━━━━━┓
┃ Dependency Type ┃ Count ┃
┡━━━━━━━━━━━━━━━━━━━━╇━━━━━━━┩
│ gradle │ 39 │
└────────────────────┴───────┘
2/4 Obtaining licenses for 39 dependencies...
┏━━━━━━━━━━━━━━━━━━━━┳━━━━━━━┓
┃ License Type ┃ Count ┃
┡━━━━━━━━━━━━━━━━━━━━╇━━━━━━━┩
│ Permissive │ 26 │
│ Unstated License │ 2 │
│ Copyleft │ 2 │
│ Public Domain │ 3 │
│ Copyleft Limited │ 1 │
└────────────────────┴───────┘
3/4 Checking project with licenses (Apache-2.0) and dependencies for problems...
┏━━━━━━━━━━━━━━━━━━━━┳━━━━━━━┓
┃ Problem Type ┃ Count ┃
┡━━━━━━━━━━━━━━━━━━━━╇━━━━━━━┩
│ Unrecognized │ 3 │
│ dependency license │ │
│ Prohibited │ 2 │
│ dependency license │ │
│ No dependency │ 4 │
│ licenses │ │
│ Uncategorized │ 4 │
│ dependency license │ │
└────────────────────┴───────┘
✨ Done!
Full License Audit results are available in the file report.json
located in the results-dir
folder.
By using Qodana, you agree to the JetBrains EAP user agreement and JetBrains privacy policy.
Contact us at qodana-support@jetbrains.com or via our issue tracker. We are eager to receive your feedback on the existing Qodana functionality and learn what other features you miss in it.