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
GitHub Action: How to fail job if cfn-nag throws errors? #582
Comments
I think everybody should have the problem because the implementation of the Github Action looks like this:
The pipe will swallow the exit code of the
In case you use the |
A tweaked version of the marcus-vw's. This version also counts Warnings.
|
- To avoid the pipe swallows the exit code of the cfn_nag_scan command
My grep is having trouble finding cfn_nag.out. Do I need to navigate to a particular directory to find it? My git action currently looks like the following:
At the top of our pipeline workflow.yml file we've set our working directory to ./source |
Currently when cfn_nag returns failures, my Github Action will continue happily. How can I make sure the job is cancelled if the cfn_nag returns problems?
The text was updated successfully, but these errors were encountered: