Skip to content

Commit

Permalink
Merge pull request #35 from aquasecurity/owenr-tweak-output
Browse files Browse the repository at this point in the history
tweaks to policy failure output
  • Loading branch information
Owen Rumney authored Dec 22, 2021
2 parents 6da445f + feb63cf commit 9d56611
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/aqua/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func checkPolicyResults(results []*buildsecurity.Result) error {

if len(warns) > 0 {
sort.Strings(warns)
_, _ = fmt.Fprintf(os.Stderr, "\n\x1b[33mThe following policy warnings were found:\n\n\x1b[0m")
_, _ = fmt.Fprintf(os.Stderr, "\n\x1b[33mAqua Assurance Policy warnings were triggered by the following checks failing:\n\n\x1b[0m")
for _, warn := range warns {
_, _ = fmt.Fprintf(os.Stderr, "\t- %s\n", warn)
}
Expand All @@ -147,7 +147,7 @@ func checkPolicyResults(results []*buildsecurity.Result) error {

if len(failures) > 0 {
sort.Strings(failures)
_, _ = fmt.Fprintf(os.Stderr, "\n\x1b[31mThe following policy enforcements were found:\n\n\x1b[0m")
_, _ = fmt.Fprintf(os.Stderr, "\n\x1b[31mAqua Assurance Policy build failed with the following checks failing:\n\n\x1b[0m")
for _, failure := range failures {
_, _ = fmt.Fprintf(os.Stderr, "\t- %s\n", failure)
}
Expand Down

0 comments on commit 9d56611

Please sign in to comment.