Step 0: Terminology
For brevity let’s refer to the repository running the Github Actions as action_repo and the private repository that is a dependency as private_repo.
Step 1: Create private and public keys
- ssh-keygen -t ed25519 -C “some@email.com” should do the trick
- This creates 2 files — one with the name provided and one with the name provided and the extension .pub as can be seen in the image above.