Skip to content

Commit

Permalink
fix: replace values following ::add-mask:: in evaluated strings
Browse files Browse the repository at this point in the history
Co-authored-by: Markus Wolf <markus.wolf@new-work.se>
  • Loading branch information
2 people authored and github-actions committed May 24, 2022
1 parent 81a06e8 commit 51ed283
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/runner/expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,10 @@ func (ee expressionEvaluator) evaluate(ctx context.Context, in string, defaultSt
logger := common.Logger(ctx)
logger.Debugf("evaluating expression '%s'", in)
evaluated, err := ee.interpreter.Evaluate(in, defaultStatusCheck)
logger.Debugf("expression '%s' evaluated to '%t'", in, evaluated)

printable := regexp.MustCompile(`::add-mask::.*`).ReplaceAllString(fmt.Sprintf("%t", evaluated), "::add-mask::***)")
logger.Debugf("expression '%s' evaluated to '%s'", in, printable)

return evaluated, err
}

Expand Down

0 comments on commit 51ed283

Please sign in to comment.