Open MarshallAsch opened 2 years ago
same as #183 , and I definitely agree, it's a huge bummer that this isn't implemented
You can resolve this by writing a custom ruleset to throw failures instead of warnings for specific things (like missing fields)
I think it was a desired behavior to pass on warnings and fail on errors - IMO that makes sense to me
Is it possible to have warnings show up as code comments rather than in the action log?
User story.
As a Developer I can do have warnings be reported as errors, so that the pipeline will fail so I know to fix them.
Is your feature request related to a problem?
Github actions only support a
success
andfailure
state, however spectral has support for warnings that get ignored. Having an option to to have the warnings be reported as failures could be beneficial to cause the pipeline to fail to draw attention to the potential issue.Describe the solution you'd like
The option to return an error status from an action when any warnings are present.
Additional context
Sample of the warnings being applied but the pipeline showing as passing![image](https://user-images.githubusercontent.com/18215471/151879324-e64d2504-40b4-4889-878c-257b9fbca7ae.png)
PR Check not showing the presents of any warnings![image](https://user-images.githubusercontent.com/18215471/151879410-79f61fc6-a5fa-46a4-99f0-06d8929fcbc7.png)