Skip to content

Commit

Permalink
fix: status always success when using custom policy
Browse files Browse the repository at this point in the history
Signed-off-by: ekapratama93 <[email protected]>
  • Loading branch information
ekapratama93 committed Dec 12, 2024
1 parent 559f4f9 commit d57b7ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/core/runtime/run_step_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ func (r *RunStepRunner) Run(
err = fmt.Errorf("%s: running %q in %q: \n%s", err, command, path, output)
if !ctx.CustomPolicyCheck {
ctx.Log.Debug("error: %s", err)
return "", err
}
ctx.Log.Debug("Treating custom policy tool error exit code as a policy failure. Error output: %s", err)
return "", err
}

switch postProcessOutput {
Expand Down

0 comments on commit d57b7ad

Please sign in to comment.