diff --git a/src/ssh.ts b/src/ssh.ts index 846c124f..7df9e3a3 100644 --- a/src/ssh.ts +++ b/src/ssh.ts @@ -26,9 +26,8 @@ export async function configureSSH(action: ActionInterface): Promise { const agentOutput = execFileSync('ssh-agent').toString().split('\n') agentOutput.map(line => { - const exportableVariables = /^(SSH_AUTH_SOCK|SSH_AGENT_PID)=(.*); export \1/.exec( - line - ) + const exportableVariables = + /^(SSH_AUTH_SOCK|SSH_AGENT_PID)=(.*); export \1/.exec(line) if (exportableVariables && exportableVariables.length) { exportVariable(exportableVariables[1], exportableVariables[2]) diff --git a/src/util.ts b/src/util.ts index dd9a10d3..7f67b149 100644 --- a/src/util.ts +++ b/src/util.ts @@ -79,9 +79,9 @@ export const suppressSensitiveInformation = ( return value } - const orderedByLength = ([action.token, action.repositoryPath].filter( - Boolean - ) as string[]).sort((a, b) => b.length - a.length) + const orderedByLength = ( + [action.token, action.repositoryPath].filter(Boolean) as string[] + ).sort((a, b) => b.length - a.length) for (const find of orderedByLength) { value = replaceAll(value, find, '***')