Skip to main content
All CollectionsCI/CD Integration
How to configure the StackHawk GitHub Action to fail when encountering a scan error
How to configure the StackHawk GitHub Action to fail when encountering a scan error

Tuning HawkScan within GitHub Actions

AJ avatar
Written by AJ
Updated over 2 years ago

Objective

Configure GitHub Actions to stop an initiated StackHawk HawkScan Action if an error is encountered.

For example, if the yaml configuration fails the initial validation step, you may not want HawkScan to continue any further; stopping it at this stage prevents utilizing additional GitHub Actions resources (minutes).

Procedure

You can break the action on yaml validation by setting continue-on-error: false in the relevant yaml config file under .github/workflows directory.

Also, when running the HawkScan Action, make sure you're using the latest version of the Action (see StackHawk HawkScan Action).
โ€‹

Additional Information

Did this answer your question?