From cfe48bcf19a9e2047ed4aedcfb7c775d5abd3e9f Mon Sep 17 00:00:00 2001 From: Gabor Demeter Date: Thu, 20 Aug 2026 19:21:14 +0200 Subject: [PATCH] fix(gcp-secret-get): write multiline field values via GITHUB_ENV's heredoc form The naive NAME=value append corrupts $GITHUB_ENV the moment a field's value contains an embedded newline -- jwt_key is a multi-line PEM. Every field now goes through the NAME< 0) console.log(`::add-mask::${line}`); + } + const delimiter = `ghadelim_${crypto.randomBytes(16).toString("hex")}`; + lines.push(`${key.toUpperCase()}<<${delimiter}`, stringValue, delimiter); } fs.appendFileSync(process.env.GITHUB_ENV, lines.join("\n") + "\n"); '