goreleaser shows environment by default
Moderate severity
GitHub Reviewed
Published
May 15, 2024
in
goreleaser/goreleaser
•
Updated May 15, 2024
Description
Published to the GitHub Advisory Database
May 15, 2024
Reviewed
May 15, 2024
Last updated
May 15, 2024
Summary
Since #4787 the log output is printed on the INFO level, while previously it was logged on DEBUG. This means if the
go buildoutput is non-empty, goreleaser leaks the environment.PoC
$GOPATH/pkg).go mod tidyin a before hookgoreleaser release --cleango: downloading ...lines, which triggers the "if output not empty, log it" line, which includes the environment.Impact
Credentials and tokens are leaked.
References