Skip to content

Commit

Permalink
report no changes if correctly (#824)
Browse files Browse the repository at this point in the history
  • Loading branch information
motatoes authored Nov 27, 2023
1 parent 3b5a201 commit 895d502
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/digger/digger.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,10 @@ func run(command string, job orchestrator.Job, policyChecker policy.Checker, org
log.Printf(msg)
return msg, fmt.Errorf(msg)
} else {
reportTerraformPlanOutput(reporter, projectLock.LockId(), "No changes in terraform plan")
err := reporter.Report("Terraform plan validation checks succeeded :white_check_mark:", planPolicyFormatter)
if err != nil {
log.Printf("Failed to report plan. %v", err)
}
}
} else {
reportTerraformPlanOutput(reporter, projectLock.LockId(), "No changes in terraform plan\n")
Expand Down

0 comments on commit 895d502

Please sign in to comment.