app/models/concerns/github_api.rb
# Read the integration's private key from the environment.
#
# If CODY_GITHUB_INTEGRATION_PRIVATE_KEY is specified, this variable is
# assumed to contain the contents of the .pem file and is used as is.
#
# If CODY_GITHUB_INTEGRATION_PRIVATE_KEY_PATH is specified, this variable is
# assumed to contain the path to the .pem file. Relative paths are expanded
# relative to Rails.root.
Read the integration's private key from the environment.
If CODY_GITHUB_INTEGRATION_PRIVATE_KEY is specified, this variable is
assumed to contain the contents of the .pem file and is used as is.

If CODY_GITHUB_INTEGRATION_PRIVATE_KEY_PATH is specified, this variable is
assumed to contain the path to the .pem file. Relative paths are expanded
relative to Rails.root.
Read the integration ' s private key from the environment . If CODY_GITHUB_INTEGRATION_PRIVATE_KEY is specified this variable is assumed to contain the contents of the . pem file and is used as is . If CODY_GITHUB_INTEGRATION_PRIVATE_KEY_PATH is specified this variable is assumed to contain the path to the . pem file . Relative paths are expanded relative to Rails . root .
def integration_private_key
    ENV["CODY_GITHUB_INTEGRATION_PRIVATE_KEY"].presence ||
      File.read(
        Rails.root.join(ENV["CODY_GITHUB_INTEGRATION_PRIVATE_KEY_PATH"])
          .expand_path
      )
  end
def integration_private_key ENV [ "CODY_GITHUB_INTEGRATION_PRIVATE_KEY" ] . presence || File . read ( Rails . root . join ( ENV [ "CODY_GITHUB_INTEGRATION_PRIVATE_KEY_PATH" ] ) . expand_path ) end
Read the integration's private key from the environment.
Read the integration ' s private key from the environment .