From cb31c74cbcb693e7057b540bf6e979a9f80ef907 Mon Sep 17 00:00:00 2001 From: Duncan Dewhurst Date: Thu, 27 Jun 2024 11:58:23 +0100 Subject: [PATCH] tests/test_json.py: Handle unset GITHUB_ACTOR --- tests/test_json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_json.py b/tests/test_json.py index 3380ffb..d58c8ab 100644 --- a/tests/test_json.py +++ b/tests/test_json.py @@ -92,7 +92,7 @@ def read_metadata(allow_missing=False): is_profile = os.path.isfile('Makefile') and os.path.isdir('docs') and repo_name not in ('standard', 'infrastructure') is_extension = os.path.isfile('extension.json') or is_profile extensiondir = os.path.join('schema', 'profile') if is_profile else '.' -if repo_name == 'standard' and os.getenv('GITHUB_ACTOR').lower() not in ( +if repo_name == 'standard' and os.getenv('GITHUB_ACTOR', '').lower() not in ( 'colinmaudry', 'duncandewhurst', 'jachymhercher', 'odscjen' 'jpmckinney', 'yolile' ): standard_owner = os.getenv('GITHUB_ACTOR', 'open-contracting')