dependency-review-action
dependency-review-action copied to clipboard
Blocking issues (should block but does not)
I've seen issues with license detection and package manager issues but I've not seen these two specifically raised.
- There's no way to block an unknown license. This would be ideal because you run the risk of introducing copy-left licenses. I'd love a simple flag that blocked on unknown licenses. Additionally,
allow-licenses
anddeny-licenses
cannot be used together. - The
deny-packages
does not block, only warns. Not sure why I only get warnings on this, but the docs say it will block.
Here's a readme and PR showing the issues (there's a couple more I showed in the readme):
- PR: https://github.com/austimkelly/dependecy-review-study/pull/1
- README: https://github.com/austimkelly/dependecy-review-study/tree/develop
Hi @austimkelly, thank you for the feedback!
re:
Additionally, allow-licenses and deny-licenses cannot be used together.
This is by design. I've updated the readme to clarify the behavior.
@austimkelly looking at your example PR I see Error: Dependency review detected denied packages.
in the action logs and the check failing (which is the purpose of deny_packages
). Am I missing something where, or what is your expected behavior for the option?
@austimkelly looking at your example PR I see
Error: Dependency review detected denied packages.
in the action logs and the check failing (which is the purpose ofdeny_packages
). Am I missing something where, or what is your expected behavior for the option?
Hi @febuiles Thanks for checking this out. Here's the PR annotations I'm seeing where the denied packages are reported as warnings:
My expectation is that these would have red X next to them an also provide a non-zero return to fail the check.
I think I see what I missed now here in the logs:
I was looking for an Error in the Denied section in the logs and not the top level which does report an action. A couple of suggestions:
- Make sure a red X is next to any denied packages in the PR annotation summary
- Can you report an Error in the Denied section?
So just a little UX issue, but it does seem to make the check fail.
Thanks for taking the time to review my issue.
@austimkelly Thanks for the clarification. I think your suggestions make sense and would improve
Do you mind opening a new issue with the feature request? This helps with our board's automations.
Thanks @febuiles, split to:
https://github.com/actions/dependency-review-action/issues/732 https://github.com/actions/dependency-review-action/issues/731