Skip to content

chore: add license review to CI #12981

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Apr 17, 2024
Merged

chore: add license review to CI #12981

merged 25 commits into from
Apr 17, 2024

Conversation

sreya
Copy link
Collaborator

@sreya sreya commented Apr 16, 2024

This PR adds a job that checks that a PR does not introduce a dependency with an incompatible license.

The current list of valid licenses includes:

  • Apache-2.0
  • BSD-2-Clause
  • BSD-3-Clause
  • CC0-1.0
  • ISC
  • MIT
  • MIT-0
  • MPL-2.0

if other permissive licenses are encountered we can update the allowlist. There's an unfortunate feature missing in the action that would fail the job if an unresolved or unlicensed dependency were introduced so I had to write some bash to workaround it. We will have to manage those by hand.

@sreya sreya force-pushed the jon/licenseaction branch from 4c0bffb to fcde457 Compare April 17, 2024 00:13
@sreya sreya requested a review from coadler April 17, 2024 00:23
@sreya sreya merged commit 80f5978 into main Apr 17, 2024
29 of 31 checks passed
@sreya sreya deleted the jon/licenseaction branch April 17, 2024 03:52
@github-actions github-actions bot locked and limited conversation to collaborators Apr 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants