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 license checker reusable workflow #3

Merged
merged 5 commits into from
Oct 1, 2024

Conversation

NyanKiyoshi
Copy link
Member

This adds a reusable GitHub Workflow that checks licenses of the caller's repository.

It works as follows:

  1. It generates an SBOM using ./sbom-generator/action.yaml (cdxgen + fetches licenses from NPM and PyPI)
  2. It analyzes the SBOM using grant (./grant-license-checker/action.yaml)
  3. It sends the summary as a pull request comment (edits the comment if it already commented previously)

@NyanKiyoshi NyanKiyoshi self-assigned this Sep 27, 2024
This adds a reusable GitHub Workflow that checks licenses of the caller's repository.

It works as follows:

1. It generates an SBOM using `./sbom-generator/action.yaml` (cdxgen + fetches licenses from NPM and PyPI)
2. It analyzes the SBOM using grant (`./grant-license-checker/action.yaml`)
3. It sends the summary as a pull request comment (edits the comment if it already commented previously)
Copy link

License Name Package Count Packages
Apache-2.0 1
Packages
  • packaging
BSD-3-Clause 1
Packages
  • MarkupSafe
PSF-2.0 1
Packages
  • typing-extensions
0BSD 4
Packages
  • colorama
  • Jinja2
  • MarkupSafe
  • packaging
MIT 6
Packages
  • annotated-types
  • iniconfig
  • pluggy
  • pydantic
  • pydantic-core
  • pytest

@NyanKiyoshi NyanKiyoshi marked this pull request as ready for review September 30, 2024 11:53
@NyanKiyoshi NyanKiyoshi requested a review from a team September 30, 2024 11:53
@NyanKiyoshi NyanKiyoshi merged commit 6dafc3b into main Oct 1, 2024
4 checks passed
@NyanKiyoshi NyanKiyoshi deleted the actions/add-license-checker branch October 1, 2024 09:22
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.

2 participants