1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-02-13 13:48:40 +02:00

Merge pull request from GHSA-f6mm-5fc7-3g3c

fixes GHSA-f6mm-5fc7-3g3c

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos Alexandro Becker 2024-05-15 10:18:29 -03:00 committed by GitHub
parent d557483388
commit 22f734e41f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -373,7 +373,6 @@ func processFlag(ctx *context.Context, a *artifact.Artifact, env []string, rawFl
func run(ctx *context.Context, command, env []string, dir string) error {
/* #nosec */
cmd := exec.CommandContext(ctx, command[0], command[1:]...)
log := log.WithField("env", env).WithField("cmd", command)
cmd.Env = env
cmd.Dir = dir
log.Debug("running")
@ -382,7 +381,7 @@ func run(ctx *context.Context, command, env []string, dir string) error {
return fmt.Errorf("%w: %s", err, string(out))
}
if s := buildOutput(out); s != "" {
log.Info(s)
log.WithField("cmd", command).Info(s)
}
return nil
}