Fix lint error
All checks were successful
Lint Checks / Run linter (pull_request) Successful in 32s
Deploy Test / Run deploy test suite (pull_request) Successful in 5m3s
Webapp Test / Run webapp test suite (pull_request) Successful in 4m35s
Smoke Test / Run basic test suite (pull_request) Successful in 4m14s
K8s Deploy Test / Run deploy test suite on kind/k8s (pull_request) Successful in 7m29s

This commit is contained in:
David Boreham 2024-07-05 06:06:03 -06:00
parent 7f224a12ff
commit 1c15b2dc83

View File

@ -255,7 +255,9 @@ def build_container_image(app_record, tag, extra_build_args=[], logger=None):
github_token = os.environ.get("DEPLOYER_GITHUB_TOKEN")
if github_token:
logger.log("Github token detected, setting it in the git environment")
git_config_args = ["git", "config", "--global", f"url.\"https://{github_token}:@github.com/\".insteadOf", "https://github.com/"]
git_config_args = [
"git", "config", "--global", f"url.\"https://{github_token}:@github.com/\".insteadOf", "https://github.com/"
]
result = subprocess.run(git_config_args, stdout=logger.file, stderr=logger.file)
result.check_returncode()
if ref: