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
For example yaml configuration, see Installing and Configuring the StackHawk Code Scanning Integration
For additional information on continue-on-error, see jobs<job_id).continue-on-error