Skip to content

Commit

Permalink
fixing it for real this time
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris McIntosh authored and Jared Murrell committed Jan 5, 2022
1 parent 6407056 commit 380233e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .env.example.aad
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .env.example.ldap
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .env.example.okta
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .env.example.onelogin
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions githubapp/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 380233e

Please sign in to comment.