Fix and optimize license check workflow logic#1492
Conversation
|
I'm looking at some of the results from the licenses check and wondering why the CI is not failing for them: all of these are clearly a problem, but the CI is not flagging them at all. |
|
Ah, I see it generates a patch file...but perhaps it should actually fail when we do not have permission to redistribute and provide advice about what to do? The current CI will never fail, so no-one will pay attention to problems being introduced. |
|
Also, |
This is the idea for when the results are more stable to not have now a failing CI all the time.
I suspect on the way to parse the packages, as it's not the same for a repository than for a package, and Underworld is a repository but all the dependencies are Python packages, so the way to go fetch the license can results in mistmatches like this. Good news though, while checking how to solve it I found out that ecosyste.ms released a new API for license fetching!: https://licenses.ecosyste.ms/docs/index.html We will give it a try and update the pipeline, it could solve this particular issue |
Fix logic in check_licenses.yml to prevent errors in merge/push events.