I just answered a similar question in another topic. Use a User SSH Key and it’ll checkout as said user which in turn sets the known_hosts.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Build failure: The authenticity of host 'github.com (140.82.113.4)' can't be established | 3 | 231 | January 27, 2026 | |
| The authenticity of host 'bitbucket.org (xxx.xxx.xxx.xxx)' can't be established | 2 | 4788 | July 18, 2018 | |
| Error on checkout step | 8 | 4060 | April 27, 2020 | |
| Passing fingerprint for ssh to Docker build | 0 | 652 | March 24, 2023 | |
| Build using unknown ssh key fingerprint to clone from github repo | 4 | 3898 | July 26, 2016 |