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

fix: adjust Dependency Review action to upstream breaking change #1197

Merged
merged 2 commits into from
Jul 31, 2024

Conversation

mgoetzegb
Copy link
Member

@mgoetzegb mgoetzegb commented Jul 29, 2024

What

Remove all entries from the allow licenses of the Dependency Review action which are not a single license, but have the pattern License-A AND License-B or License-A OR License-B.

Why

The github dependency review action no longer allows to pass in logically connected licenses. So if there is a License-A AND License-B in the list of allowed licenses, the action will always fail if a dependency has only License-A or License B.

This results in false positives for dependencies with something like License-A AND License-B, however as this is much rarer than e.g. MIT license, it is preferable to pass on all the single licenses.

References

Github Action Issue: actions/dependency-review-action#792

@mgoetzegb mgoetzegb requested a review from a team as a code owner July 29, 2024 13:15
Copy link

github-actions bot commented Jul 29, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 9b4f8bb.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

@greenbonebot greenbonebot enabled auto-merge (rebase) July 29, 2024 13:15
Copy link

Conventional Commits Report

Type Number
Bug Fixes 1

🚀 Conventional commits found.

Copy link
Member

@y0urself y0urself left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution @mgoetzegb ... would it be "too much" to ask you to also sort the list of allowed dependencies? That would be awesome ... thank you!

@y0urself y0urself mentioned this pull request Jul 31, 2024
1 task
@mgoetzegb
Copy link
Member Author

Thank you for your contribution @mgoetzegb ... would it be "too much" to ask you to also sort the list of allowed dependencies? That would be awesome ... thank you!

No problem, I already had the licenses sorted locally, but I thought it is good to have this in a separate commit and was concerned that the auto merge feature will just squash it without asking. But I see it is set to rebase, which I would say is desired here.

The github dependency review action no longer allows to pass in logically connected licenses. So if there is a `License-A AND License-B` in the list of allowed licenses, the action will always fail if a dependency has only `License-A` or `License B`.

For reference see: actions/dependency-review-action#792

This results in false positives for dependencies with something like `License-A AND License-B`, however as this is much rarer than e.g. `MIT` license, it is preferable to pass on all the single licenses.
@greenbonebot greenbonebot merged commit 5a87253 into main Jul 31, 2024
23 of 24 checks passed
@greenbonebot greenbonebot deleted the only-single-licenses branch July 31, 2024 07: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.

3 participants