From 9764ed4f74be54c15e8e37c710a14cf7a3a99251 Mon Sep 17 00:00:00 2001 From: Matthias Glastra Date: Wed, 2 Oct 2024 14:21:11 +0200 Subject: [PATCH] chore: Fix tests and command run. Signed-off-by: Matthias Glastra --- attestation/commandrun/commandrun.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/attestation/commandrun/commandrun.go b/attestation/commandrun/commandrun.go index 431d9ca7..9b58a340 100644 --- a/attestation/commandrun/commandrun.go +++ b/attestation/commandrun/commandrun.go @@ -82,13 +82,13 @@ func WithSilent(silent bool) Option { func WithEnvironmentBlockList(blockList map[string]struct{}) Option { return func(cr *CommandRun) { - cr.environmentBlockList = blockList + cr.sensitiveEnvList = blockList } } func New(opts ...Option) *CommandRun { cr := &CommandRun{ - environmentBlockList: environment.DefaultBlockList(), + sensitiveEnvList: environment.DefaultSensitiveEnvList(), } for _, opt := range opts { @@ -118,10 +118,10 @@ type CommandRun struct { ExitCode int `json:"exitcode"` Processes []ProcessInfo `json:"processes,omitempty"` - silent bool - materials map[string]cryptoutil.DigestSet - enableTracing bool - environmentBlockList map[string]struct{} + silent bool + materials map[string]cryptoutil.DigestSet + enableTracing bool + sensitiveEnvList map[string]struct{} } func (a *CommandRun) Schema() *jsonschema.Schema {