Skip to content

ci(license): add automated dependency license compliance audit (#717) - #735

Open
ravendevhub wants to merge 1 commit into
Core-Foundry:mainfrom
ravendevhub:ci/dependency-license-audit-717
Open

ci(license): add automated dependency license compliance audit (#717)#735
ravendevhub wants to merge 1 commit into
Core-Foundry:mainfrom
ravendevhub:ci/dependency-license-audit-717

Conversation

@ravendevhub

Copy link
Copy Markdown

Summary

Resolves #717 by establishing an automated dependency license auditor script (scripts/audit-licenses.py) and GitHub Actions CI workflow (.github/workflows/dependency-license-audit.yml) to continuously inspect direct and transitive licenses across Node.js and Rust environments against our approved open-source policy.

Changes

  1. License Audit Script (scripts/audit-licenses.py):
    • Parses package.json, package-lock.json, and Cargo.toml manifests.
    • Evaluates packages against permissive open-source licenses (MIT, Apache-2.0, BSD, ISC, 0BSD, BlueOak-1.0.0, etc.).
    • Identifies non-standard or restrictive copyleft licenses for review.
  2. CI Workflow (.github/workflows/dependency-license-audit.yml):
    • Executes automatically on pull requests touching dependency manifests.
  3. Policy Documentation (docs/DEPENDENCY_LICENSE_POLICY.md):
    • Documents approved license list and local validation commands.

Acceptance Criteria

  • Existing dependencies are evaluated.
  • Dependency licenses can be inspected automatically.
  • Unexpected licenses cause an actionable CI result.
  • An approved license policy is documented.

…Foundry#717)

- Create scripts/audit-licenses.py checking direct and transitive licenses
- Define approved open-source license policy (MIT, Apache-2.0, BSD, ISC, etc.)
- Add GitHub Actions CI workflow triggered on dependency manifest changes
- Document license compliance policy in docs/DEPENDENCY_LICENSE_POLICY.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Dependency License Audit to CI

1 participant