-
-
Notifications
You must be signed in to change notification settings - Fork 77
chore: SPDX licenses bump automation #703
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Jan Kowalleck <[email protected]>
6c5d2df to
fb1e3b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements automated daily updates for SPDX license lists by detecting the latest release from the SPDX GitHub repository and creating pull requests with updated schemas when changes are detected.
Key Changes:
- Enhanced
SpdxXsdGeneratorto dynamically fetch the latest SPDX release version via GitHub API instead of using a hardcoded version - Added GitHub Actions workflow for scheduled daily execution and manual triggering
- Modified update script to change to the correct directory before running Maven commands
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/workflows/update_spdx_licenses.yml |
New workflow that runs daily to check for SPDX updates, generate schemas, and create PRs when changes are detected |
tools/src/main/java/org/cyclonedx/tools/SpdxXsdGenerator.java |
Refactored to support dynamic version detection from GitHub API with configurable tag names and extracted schema generation into instance methods |
tools/updateSpdx.sh |
Added directory change to ensure Maven commands execute in the correct location |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]> Signed-off-by: Jan Kowalleck <[email protected]>
ef19a5c to
805ed58
Compare
fixes #186
this automation will do the following on a daily/scheduled basis