Skip to content
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

Add 3PP license check as part of PR CI #190

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

marcdumais-work
Copy link
Contributor

@marcdumais-work marcdumais-work commented Jan 19, 2024

Depends on dash-licenses nodejs-wrapper being released on npm. (ongoing)

However, I went ahead and published a v0.0.1 so we can start using it immediately - the plan is to catch-up with the PR above and a small subsequent one that will create the GitHub release for this version.

For now the CI job it will be only informational, letting the committers know that some 3PPs look suspicious. Any committer can then run the dash-licenses wrapper locally to automatically create the required IP ticket(s) - see commit message for more details.

Closes #189

@marcdumais-work marcdumais-work marked this pull request as draft January 19, 2024 16:04
@marcdumais-work marcdumais-work changed the title WIP - Add 3PP license check as part of PR CI Add 3PP license check as part of PR CI Jan 29, 2024
@marcdumais-work marcdumais-work marked this pull request as ready for review January 29, 2024 19:41
The license check can be triggered locally:
  yarn license:check

For automatic opening of IP tickets for suspicious depedencies, set an
Eclipse Foundation gitlab token as environment variable "DASH_TOKEN" and
run the alternate pacakge.json script. e.g.:
  export DASH_TOKEN="<your token>"
  yarn license:check:reviewAdd 3PP license check as part of PR CI

Closes #189

Signed-off-by: Marc Dumais <[email protected]>
Copy link
Collaborator

@bhufmann bhufmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

Copy link
Collaborator

@bhufmann bhufmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Looks good to me!

@marcdumais-work
Copy link
Contributor Author

Thanks for the review!

@marcdumais-work marcdumais-work merged commit ac4d706 into master Jan 29, 2024
4 of 5 checks passed
@marcdumais-work marcdumais-work deleted the automated-pr-license-check branch January 29, 2024 20:48
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.

Perform automated 3PP license check as part of CI for PRs
2 participants