From e327e41430280a2d6eaca17550f61bd2a3e99c56 Mon Sep 17 00:00:00 2001 From: Tim Duesterhus Date: Thu, 29 Dec 2022 17:40:28 +0100 Subject: [PATCH] CI: Explicitly check environment variable against `None` in matrix.py For consistency with `GITHUB_OUTPUT` at the bottom. --- .github/matrix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/matrix.py b/.github/matrix.py index e03453aa4..c58bb7acd 100755 --- a/.github/matrix.py +++ b/.github/matrix.py @@ -29,7 +29,7 @@ def clean_ssl(ssl): @functools.lru_cache(5) def determine_latest_openssl(ssl): headers = {} - if environ.get('GITHUB_TOKEN'): + if environ.get('GITHUB_TOKEN') is not None: headers["Authorization"] = "token {}".format(environ.get('GITHUB_TOKEN')) request = urllib.request.Request('https://api.github.com/repos/openssl/openssl/tags', headers=headers)