Add gitPrivateToken (#296)
* adding option to pass git credential * trigger change * trigger change * build dist/index * prettier * adding set git credentials with more config * correct docker.ts input * change default of git credential * try using git command line to set token * remove git config cat * adding api: to git config * change to token * change input name to reflect the type github private token Co-authored-by: Alexander Brandstedt <alexander@infralium.com> Co-authored-by: Alexander Brandstedt <mad01@users.noreply.github.com>
This commit is contained in:
@@ -37,6 +37,7 @@ class Docker {
|
||||
androidKeyaliasPass,
|
||||
customParameters,
|
||||
sshAgent,
|
||||
gitPrivateToken,
|
||||
chownFilesTo,
|
||||
} = parameters;
|
||||
|
||||
@@ -80,6 +81,7 @@ class Docker {
|
||||
--env RUNNER_TOOL_CACHE \
|
||||
--env RUNNER_TEMP \
|
||||
--env RUNNER_WORKSPACE \
|
||||
--env GIT_PRIVATE_TOKEN="${gitPrivateToken}" \
|
||||
${sshAgent ? '--env SSH_AUTH_SOCK=/ssh-agent' : ''} \
|
||||
--volume "/var/run/docker.sock":"/var/run/docker.sock" \
|
||||
--volume "${runnerTempPath}/_github_home":"/root" \
|
||||
|
||||
Reference in New Issue
Block a user