diff --git a/.env.example.aad b/.env.example.aad index c048a03..6d7464b 100644 --- a/.env.example.aad +++ b/.env.example.aad @@ -12,7 +12,7 @@ PRIVATE_KEY_PATH=.ssh/team-sync.pem #GHE_HOST=github.example.com ## Uncomment if you are using a self-signed certificate on GitHub Enterprise. ## Defaults to False. -#IGNORE_SSL=true +#VERIFY_SSL=False ## User directory to sync GitHub teams from ## Azure AD = AAD diff --git a/.env.example.ldap b/.env.example.ldap index 0a4a76e..4a0dde7 100644 --- a/.env.example.ldap +++ b/.env.example.ldap @@ -12,7 +12,7 @@ PRIVATE_KEY_PATH=.ssh/team-sync.pem #GHE_HOST=github.example.com ## Uncomment if you are using a self-signed certificate on GitHub Enterprise. ## Defaults to False. -#IGNORE_SSL=true +#VERIFY_SSL=False ## User directory to sync GitHub teams from ## Azure AD = AAD diff --git a/.env.example.okta b/.env.example.okta index 8e55f98..2846134 100644 --- a/.env.example.okta +++ b/.env.example.okta @@ -12,7 +12,7 @@ PRIVATE_KEY_PATH=.ssh/team-sync.pem #GHE_HOST=github.example.com ## Uncomment if you are using a self-signed certificate on GitHub Enterprise. ## Defaults to False. -#IGNORE_SSL=true +#VERIFY_SSL=False ## User directory to sync GitHub teams from ## Azure AD = AAD diff --git a/.env.example.onelogin b/.env.example.onelogin index 8618550..9892d99 100644 --- a/.env.example.onelogin +++ b/.env.example.onelogin @@ -12,7 +12,7 @@ PRIVATE_KEY_PATH=.ssh/team-sync.pem #GHE_HOST=github.example.com ## Uncomment if you are using a self-signed certificate on GitHub Enterprise. ## Defaults to False. -#IGNORE_SSL=true +#VERIFY_SSL=False ## User directory to sync GitHub teams from ## Azure AD = AAD diff --git a/githubapp/core.py b/githubapp/core.py index 61e2fa8..cda6f01 100644 --- a/githubapp/core.py +++ b/githubapp/core.py @@ -38,8 +38,8 @@ def load_env(app): app.config["GITHUBAPP_SECRET"] = os.environ["WEBHOOK_SECRET"] if "GHE_HOST" in os.environ: app.config["GITHUBAPP_URL"] = "https://{}".format(os.environ["GHE_HOST"]) - app.config["IGNORE_SSL"] = bool( - distutils.util.strtobool(os.environ.get("IGNORE_SSL", "false")) + app.config["VERIFY_SSL"] = bool( + distutils.util.strtobool(os.environ.get("VERIFY_SSL", "false")) ) with open(os.environ["PRIVATE_KEY_PATH"], "rb") as key_file: app.config["GITHUBAPP_KEY"] = key_file.read() @@ -117,7 +117,7 @@ def client(self): if current_app.config.get("GITHUBAPP_URL"): return GitHubEnterprise( current_app.config["GITHUBAPP_URL"], - verify=current_app.config["IGNORE_SSL"], + verify=current_app.config["VERIFY_SSL"], ) return GitHub()