#66 shows a failing projectHealth, however it passes the CI action:

Example that has this support:
https://github.com/Nava2/kaff4/blob/c689f6f8d9e2552a1dc3dddaf051e1a0e2256742/.github/workflows/gradle-check-pristine.yml#L25
It might be easier to add support to the gradle plugin to support failing instead of passing.