Skip to content

Commit

Permalink
fix: empty details for transformed checks and create check status for…
Browse files Browse the repository at this point in the history
… them
  • Loading branch information
yashmehrotra committed Nov 29, 2023
1 parent d7a10e3 commit 4aa9862
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion checks/runchecks.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,14 @@ func TransformResults(ctx *context.Context, in []*pkg.CheckResult) (out []*pkg.C
for _, r := range in {
checkCtx := ctx.WithCheckResult(r)
transformed, err := transform(checkCtx, r)
// Keeping the detail field empty as it can have huge json blobs
r.Detail = nil

// We'll append the original check status to the result
// so that it can be tracked
out = append(out, r)
if err != nil {
r.Failf("transformation failure: %v", err)
out = append(out, r)
} else {
for _, t := range transformed {
out = append(out, processTemplates(checkCtx, t))
Expand Down

0 comments on commit 4aa9862

Please sign in to comment.