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

Feature/dependency check #13587

Merged
merged 71 commits into from
Sep 25, 2024

Conversation

chrisdutz
Copy link
Contributor

@chrisdutz chrisdutz commented Sep 23, 2024

Added a check to the build, that fails the build if the list of dependencies reported by the sbom project doesn't match the list on file in the "dependencies.json" file in the root of the project. This way PRs changing the dependencies also need to update this file, which makes it more obvious which dependencies have been added or removed from the build in a PR.

As the usage of the maven "-pl" and "-am" have a huge impact on the content the sbom plugin will report, it doesn't really make much sense to have this check active per default, so I've implemented the check to only be active by setting the property dependencyCheck.skip to true. So by adding `-DdependencyCheck.skip=true" to the commandline.

In order to ensure the check is run for a PR, I've added a new github-actions pipeline, which only has the goal to do this check.

Here's an example on what the build output produces with enabled check if I added one dependency (plc4j-spi) to the build without updating the dependencies.json file.

image

chrisdutz and others added 30 commits August 17, 2023 11:31
…ndencies doesn't match the one on-file in "dependencies.txt" in the root of the project.
Copy link
Contributor

@OneSizeFitsQuorum OneSizeFitsQuorum left a comment

Choose a reason for hiding this comment

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

LGTM

@OneSizeFitsQuorum OneSizeFitsQuorum merged commit 574bbd1 into apache:master Sep 25, 2024
37 checks passed
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