Skip to content

Commit 8d97a3b

Browse files
committed
.
1 parent fed794d commit 8d97a3b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

adrs/0153-checkout-v2.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ The user host key database (`~/.ssh/known_hosts`) will be copied to a unique fil
111111

112112
The SSH command will be overridden for the local git config:
113113

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"'
116116
```
117117

118118
When the input `ssh-strict` is set to `false`, the options `CheckHostIP` and `StrictHostKeyChecking` will not be overridden.
@@ -123,6 +123,7 @@ Note:
123123
and noisy. For example:
124124
> Warning: Permanently added the RSA host key for IP address '140.82.113.4' to the list of known hosts.
125125
- 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.
126127
- Refer [here](https://linux.die.net/man/5/ssh_config) for SSH config details.
127128

128129
### Fetch behavior

0 commit comments

Comments
 (0)