Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion github_tests_validator_app/bin/github_app_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ def launch_app():
uvicorn.run(
app,
host="0.0.0.0", # nosec B104
port=cast(int, os.environ.get("PORT", 8080)),
port=int(os.environ.get("PORT", 8080)),
log_level="info",
)
6 changes: 3 additions & 3 deletions github_tests_validator_app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
logging.getLogger("uvicorn").removeHandler(logging.getLogger("uvicorn").handlers[0])

# GitHub
GH_APP_ID = cast(str, os.getenv("GH_APP_ID", None)).replace("\r\n", "")
GH_APP_KEY = cast(str, os.getenv("GH_APP_KEY", None))
GH_PAT = cast(str, os.getenv("GH_PAT", None)).replace("\r\n", "")
GH_APP_ID = cast(str, os.getenv("GH_APP_ID", "")).replace("\r\n", "")
GH_APP_KEY = cast(str, os.getenv("GH_APP_KEY", ""))
GH_PAT = cast(str, os.getenv("GH_PAT", "")).replace("\r\n", "")
GH_TESTS_REPO_NAME = cast(str, os.getenv("GH_TESTS_REPO_NAME", "")).replace("\r\n", "")
GH_TESTS_FOLDER_NAME = "tests"
GH_WORKFLOWS_FOLDER_NAME = ".github/workflows"
Expand Down