Skip to content

Commit 361638f

Browse files
committed
update build_packages to double check token validility
1 parent 1fa5d29 commit 361638f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packaging_automation/citus_package.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ def build_packages(
401401
input_output_parameters: InputOutputParameters,
402402
is_test: bool = False,
403403
) -> None:
404+
os.environ["GH_TOKEN"] = github_token
404405
os_name, os_version = decode_os_and_release(platform)
405406
release_versions, nightly_versions = get_postgres_versions(
406407
platform, input_output_parameters.input_files_dir

packaging_automation/tests/test_citus_package_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
def setup_module():
4747
if not os.path.exists("packaging_test"):
4848
run(
49-
f"git clone --branch all-citus-unit-tests https://github.com/citusdata/packaging.git {PACKAGING_SOURCE_FOLDER}"
49+
f"git clone --branch all-citus-unit-tests https://x-access-token:{GH_TOKEN}@github.com/citusdata/packaging.git {PACKAGING_SOURCE_FOLDER}"
5050
)
5151

5252

0 commit comments

Comments
 (0)