fix: pass sc.Env through common.Logger to hide secrets (#578)

Currently all secrets are exposed when running with `--verbose`/`-v` option
This commit is contained in:
hackercat 2021-03-29 06:45:07 +02:00 committed by GitHub
parent da07324779
commit f3b53d8eca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,7 +129,7 @@ func (sc *StepContext) setupEnv(ctx context.Context) (ExpressionEvaluator, error
evaluator := sc.NewExpressionEvaluator() evaluator := sc.NewExpressionEvaluator()
sc.interpolateEnv(evaluator) sc.interpolateEnv(evaluator)
log.Debugf("setupEnv: %v", sc.Env) common.Logger(ctx).Debugf("setupEnv => %v", sc.Env)
return evaluator, nil return evaluator, nil
} }