File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -111,8 +111,8 @@ The user host key database (`~/.ssh/known_hosts`) will be copied to a unique fil
111
111
112
112
The SSH command will be overridden for the local git config :
113
113
114
- ` ` `
115
- git config core.sshCommand " ssh -i path-to-ssh-key -o StrictHostKeyChecking=yes -o CheckHostIP=no -o UserKnownHostsFile=path-to-known-hosts"
114
+ ` ` ` sh
115
+ git config core.sshCommand ' ssh -i "$RUNNER_TEMP/ path-to-ssh-key" -o StrictHostKeyChecking=yes -o CheckHostIP=no -o " UserKnownHostsFile=$RUNNER_TEMP/ path-to-known-hosts"'
116
116
` ` `
117
117
118
118
When the input `ssh-strict` is set to `false`, the options `CheckHostIP` and `StrictHostKeyChecking` will not be overridden.
@@ -123,6 +123,7 @@ Note:
123
123
and noisy. For example :
124
124
> Warning: Permanently added the RSA host key for IP address '140.82.113.4' to the list of known hosts.
125
125
- Since GIT_SSH_COMMAND overrides core.sshCommand, temporarily set the env var when fetching the repo.
126
+ - Modify actions/runner to mount RUNNER_TEMP to enable scripting authenticated git commands from a container action.
126
127
- Refer [here](https://linux.die.net/man/5/ssh_config) for SSH config details.
127
128
128
129
# ## Fetch behavior
You can’t perform that action at this time.
0 commit comments