Skip to content

Commit

Permalink
chore: Fix tests and command run.
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Glastra <[email protected]>
  • Loading branch information
matglas committed Oct 2, 2024
1 parent 6188a88 commit 9764ed4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions attestation/commandrun/commandrun.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 9764ed4

Please sign in to comment.