diff --git a/internal/exec/exec.go b/internal/exec/exec.go index 19c0fecc5..af1a52590 100644 --- a/internal/exec/exec.go +++ b/internal/exec/exec.go @@ -86,7 +86,6 @@ func executePublisher(ctx *context.Context, publisher config.Publisher) error { func executeCommand(c *command, artifact *artifact.Artifact) error { log.WithField("args", c.Args). - WithField("env", c.Env). WithField("artifact", artifact.Name). Debug("executing command") diff --git a/internal/pipe/sbom/sbom.go b/internal/pipe/sbom/sbom.go index 8e713e3a9..594a211fb 100644 --- a/internal/pipe/sbom/sbom.go +++ b/internal/pipe/sbom/sbom.go @@ -201,8 +201,7 @@ func catalogArtifact(ctx *context.Context, cfg config.SBOM, a *artifact.Artifact cmd.Env = append(cmd.Env, envs...) cmd.Dir = ctx.Config.Dist - log.WithField("env", cmd.Env). - WithField("dir", cmd.Dir). + log.WithField("dir", cmd.Dir). WithField("cmd", cmd.Args). Debug("running") diff --git a/internal/shell/shell.go b/internal/shell/shell.go index a879dd19b..3d24cf47b 100644 --- a/internal/shell/shell.go +++ b/internal/shell/shell.go @@ -18,7 +18,6 @@ import ( func Run(ctx *context.Context, dir string, command, env []string, output bool) error { log := log. WithField("cmd", command). - WithField("env", env). WithField("dir", dir) /* #nosec */