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:

  1. Navigate to the Environment tab in your Porter application

  2. Add your SSH private key as a secret

  3. 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.