New build setups don't get GitHub Public Key

All of my GitHub automated builds, set up within the last week, get this following error.

2024-12-01T16:45:03Z Cloning into '.'...
2024-12-01T16:45:04Z Warning: Permanently added the RSA host key for IP address '140.82.112.4' to the list of known hosts.
2024-12-01T16:45:04Z git@github.com: Permission denied (publickey).
2024-12-01T16:45:04Z fatal: Could not read from remote repository.
2024-12-01T16:45:04Z 
2024-12-01T16:45:04Z Please make sure you have the correct access rights
2024-12-01T16:45:04Z and the repository exists.
2024-12-01T16:45:04Z please ensure the correct public key is added to the list of trusted keys for this repository (128)

The solution was to enable “Deploy Keys” for the organization in GitHub. This is disabled by default for new organizations as they encourage using GitHub apps.

Now, we must figure out how to handle deploy keys with submodules. I might open a new thread for that after some more testing.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.