Let's say, I want to setup my deploy process using GitHub actions, and pull strategy.
So I have an Ubuntu server, I copy public ssh key of the server, add it to my GitHub account, and then I can clone from Ubuntu server, build and run the app.
That is great, but I feel here is small trap.
Keys are added to account, not to the repo.
What happen if I will leave the organization that is owner of repository?
Server will lost ability to do proper CI, right?
The organization owner could create account that is holder of SSH keys and will never leave organization, but what if repository ownership is transferred?
I probably miss something here, but why not allow adding keys directly to repository, not to user account?
Or this option is there and I missed it somehow?