https://github.com/oracle-devrel/action-license-audit
Looks at the output from ScanCode-Toolkit.
https://github.com/oracle-devrel/action-license-audit
Last synced: about 3 hours ago
JSON representation
Looks at the output from ScanCode-Toolkit.
- Host: GitHub
- URL: https://github.com/oracle-devrel/action-license-audit
- Owner: oracle-devrel
- License: upl-1.0
- Created: 2021-05-27T18:27:04.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-01-21T20:04:37.000Z (over 1 year ago)
- Last Synced: 2026-04-21T12:53:31.027Z (2 months ago)
- Language: Ruby
- Size: 17.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# License File Auditor
## Introduction
This is designed to be used in GitHub Actions. It indicates whether any unapproved licenses are found. This simply examines the file output from running ScanCode-Toolkit, providing a way to get a "is there a problem?" in the GitHub Workflow itself...
## Inputs
| Input | Type | Description |
|-------|------|-------------|
| `licenses_file` | string | The file output from ScanCode-Toolkit - typically the full (absolute) path is best to use. |
## Outputs
| Output | Type | Description |
|-------|------|-------------|
| `unapproved_liceses` | bool | Whether or not unapproved licenses were found. |
## Usage
Here's a sample:
```
name: License Audit
on:
pull_request_target:
jobs:
examine_licenses:
name: Look for unapproved licenses
runs-on: ubuntu-latest
steps:
- name: Look for non-approved licenses
uses: oracle-devrel/action-license-audit@v0.1.1
id: analysis
with:
licenses_file: '/github/workspace/licenses.json'
```
## Copyright Notice
Copyright (c) 2024 Oracle and/or its affiliates.