How do I attach a SSH key to my app in Porter?
Last updated: April 1, 2025
Context
When running applications that depend on private GitHub repositories during runtime, you may need to configure SSH access to authenticate with GitHub .
Answer
To enable your apps to access private GitHub repositories during runtime, you'll need to add your SSH keys as secrets in your application's environment settings.
To configure SSH access:
Navigate to the Environment tab in your Porter application
Add your SSH private key as a secret
Reference this secret in your build configuration when accessing private repositories
This will allow your app to authenticate with GitHub when accessing your private repositories during runtime.