Formatting

This commit is contained in:
James Ives 2022-04-25 21:59:43 -04:00
parent d34d41a21e
commit 119d340e22
4 changed files with 10 additions and 12 deletions

View File

@ -223,7 +223,7 @@ jobs:
integration-container, integration-container,
integration-ssh, integration-ssh,
integration-ssh-third-party-client, integration-ssh-third-party-client,
integration-env, integration-env
] ]
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View File

@ -105,8 +105,9 @@ export const action: ActionInterface = {
? getInput('git-config-email') ? getInput('git-config-email')
: pusher && pusher.email : pusher && pusher.email
? pusher.email ? pusher.email
: `${process.env.GITHUB_ACTOR || : `${
'github-pages-deploy-action'}@users.noreply.${ process.env.GITHUB_ACTOR || 'github-pages-deploy-action'
}@users.noreply.${
process.env.GITHUB_SERVER_URL process.env.GITHUB_SERVER_URL
? stripProtocolFromUrl(process.env.GITHUB_SERVER_URL) ? stripProtocolFromUrl(process.env.GITHUB_SERVER_URL)
: 'github.com' : 'github.com'

View File

@ -23,14 +23,11 @@ export async function configureSSH(action: ActionInterface): Promise<void> {
appendFileSync(sshKnownHostsDirectory, sshGitHubKnownHostDss) appendFileSync(sshKnownHostsDirectory, sshGitHubKnownHostDss)
// Initializes SSH agent. // Initializes SSH agent.
const agentOutput = execFileSync('ssh-agent') const agentOutput = execFileSync('ssh-agent').toString().split('\n')
.toString()
.split('\n')
agentOutput.map(line => { agentOutput.map(line => {
const exportableVariables = /^(SSH_AUTH_SOCK|SSH_AGENT_PID)=(.*); export \1/.exec( const exportableVariables =
line /^(SSH_AUTH_SOCK|SSH_AGENT_PID)=(.*); export \1/.exec(line)
)
if (exportableVariables && exportableVariables.length) { if (exportableVariables && exportableVariables.length) {
exportVariable(exportableVariables[1], exportableVariables[2]) exportVariable(exportableVariables[1], exportableVariables[2])

View File

@ -96,9 +96,9 @@ export const suppressSensitiveInformation = (
return value return value
} }
const orderedByLength = ([action.token, action.repositoryPath].filter( const orderedByLength = (
Boolean [action.token, action.repositoryPath].filter(Boolean) as string[]
) as string[]).sort((a, b) => b.length - a.length) ).sort((a, b) => b.length - a.length)
for (const find of orderedByLength) { for (const find of orderedByLength) {
value = replaceAll(value, find, '***') value = replaceAll(value, find, '***')