Skip to content

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.

Also adds a minimalist build/test workflow that runs existing tests. For now 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 #17

@marcdumais-work marcdumais-work force-pushed the automated-pr-license-check branch 5 times, most recently from b2037fa to 7c34a0d Compare January 19, 2024 21:40
Copied from vscode-trace-extension and adapted to run the
existing tests in this repo.

Signed-off-by: Marc Dumais <[email protected]>
@marcdumais-work marcdumais-work force-pushed the automated-pr-license-check branch from 7c34a0d to 0257b4c Compare January 19, 2024 21:44
@marcdumais-work marcdumais-work force-pushed the automated-pr-license-check branch from 0257b4c to d11896f Compare January 29, 2024 15:23
@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 force-pushed the automated-pr-license-check branch 4 times, most recently from 2d1f523 to 144c40d Compare January 29, 2024 15:34
@marcdumais-work marcdumais-work marked this pull request as ready for review January 29, 2024 15:42
Copy link
Contributor

@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.

Looks good to me. Thanks for the contribution.

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:review

Closes #17

Signed-off-by: Marc Dumais <[email protected]>
@marcdumais-work marcdumais-work force-pushed the automated-pr-license-check branch from 144c40d to f6b8480 Compare January 29, 2024 17:17
@marcdumais-work
Copy link
Contributor Author

The 3PP License check job found one dependency that we will need to update. I will do that in a follow-up PR.

@marcdumais-work
Copy link
Contributor Author

Thanks for the review @bhufmann! Will merge now.

@marcdumais-work marcdumais-work merged commit b7d0c3b into main Jan 29, 2024
@marcdumais-work marcdumais-work deleted the automated-pr-license-check branch January 29, 2024 17:24
@marcdumais-work
Copy link
Contributor Author

The 3PP License check job found one dependency that we will need to update. I will do that in a follow-up PR.

Done in #21

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

3 participants