From 1b014b03d943b26adc29d30c764fb3b31ec64c5f Mon Sep 17 00:00:00 2001 From: Sjur Fredriksen Date: Tue, 20 Feb 2024 08:36:51 +0100 Subject: [PATCH] ci: try to log in to gh when testing --- tests/test_configuration.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_configuration.py b/tests/test_configuration.py index 729f720e..b4087b00 100644 --- a/tests/test_configuration.py +++ b/tests/test_configuration.py @@ -35,4 +35,8 @@ USE_LOCAL_KNOWN_SLUGS = True USE_UPSTREAM_DIFF = True -NETBOX_DT_LIBRARY_URL = "https://github.com/nrk/netbox-devicetype-library.git" \ No newline at end of file + +username = os.getenv("NRK_GITHUB_USERNAME") +password = os.getenv("NRK_JENKINS1_GITHUB_TOKEN_READ") + +NETBOX_DT_LIBRARY_URL = f"https://{username}:{password}@github.com/nrk/netbox-devicetype-library.git" \ No newline at end of file