Since #4787 the log output is printed on the INFO level, while previously it was logged on DEBUG. This means if the go build output is non-empty, goreleaser leaks the environment.
$GOPATH/pkg).go mod tidy in a before hookgoreleaser release --cleango: downloading ... lines, which triggers the "if output not empty, log it" line, which includes the environment.Credentials and tokens are leaked.
{
"nvd_published_at": null,
"severity": "MODERATE",
"github_reviewed_at": "2024-05-15T17:17:10Z",
"github_reviewed": true,
"cwe_ids": [
"CWE-532"
]
}