mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2026-07-14 10:42:44 +03:00
Fix from review
This commit is contained in:
Vendored
+3
-2
@@ -3997,7 +3997,8 @@ function convertToUnixPath(windowsPath) {
|
||||
function setupGpgHome() {
|
||||
const dirName = `gpg-${randomBytes(4).toString("hex")}`;
|
||||
|
||||
for (const base of [process.env.RUNNER_TEMP, os$1.tmpdir()].filter(Boolean)) {
|
||||
const runnertemp = process.env.RUNNER_TEMP;
|
||||
for (const base of [runnertemp, os$1.tmpdir()].filter(Boolean)) {
|
||||
const gpgHome = path$1.join(base, dirName);
|
||||
if (process.platform === "win32" || (gpgHome + LONGEST_GPG_SOCKET).length <= MAX_GPG_SOCKET_PATH) {
|
||||
fs$1.mkdirSync(gpgHome, { recursive: true, mode: 0o700 });
|
||||
@@ -4008,7 +4009,7 @@ function setupGpgHome() {
|
||||
throw new Error(
|
||||
`Cannot create a GPG home directory with a short enough path for GPG sockets. ` +
|
||||
`The longest socket path (gpgHome + "${LONGEST_GPG_SOCKET}") must not exceed ${MAX_GPG_SOCKET_PATH} characters. ` +
|
||||
`Consider setting RUNNER_TEMP to a shorter path.`
|
||||
`Consider setting RUNNER_TEMP to a shorter path, was "${runnertemp || '<empty>'}".`
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user