hermes.commands.init.connect_github

Attributes

Functions

oauth_process(...)

get_tokens(→ dict[str)

Starts the oauth procedure and returns collected tokens as dict

get_access_token(→ str)

allow_actions(project_url, token)

encrypt_secret(→ str)

create_secret(project_url, secret_name, secret_value, ...)

Module Contents

hermes.commands.init.connect_github.local_port = 8333
hermes.commands.init.connect_github.client_id = 'Ov23linvdC7WzHnOO2WK'
hermes.commands.init.connect_github.client_secret = 'empty-as-not-needed-for-public-device-flow'
hermes.commands.init.connect_github.authorization_base_url = 'https://github.com/login/oauth/authorize'
hermes.commands.init.connect_github.token_url = 'https://github.com/login/oauth/access_token'
hermes.commands.init.connect_github.redirect_uri = 'http://localhost:/callback'
hermes.commands.init.connect_github.scope = 'repo'
hermes.commands.init.connect_github.device_code_url = 'https://github.com/login/device/code'
hermes.commands.init.connect_github.oauth_process() hermes.commands.init.oauth_process.OauthProcess
hermes.commands.init.connect_github.get_tokens() dict[str:str]

Starts the oauth procedure and returns collected tokens as dict

hermes.commands.init.connect_github.get_access_token() str
hermes.commands.init.connect_github.allow_actions(project_url: str, token)
hermes.commands.init.connect_github.encrypt_secret(public_key: str, secret_value: str) str
hermes.commands.init.connect_github.create_secret(project_url: str, secret_name: str, secret_value, token)