From: Tim Duesterhus Date: Thu, 29 Dec 2022 16:40:28 +0000 (+0100) Subject: CI: Explicitly check environment variable against `None` in matrix.py X-Git-Tag: v2.8-dev1~20 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=e327e41430280a2d6eaca17550f61bd2a3e99c56;p=thirdparty%2Fhaproxy.git CI: Explicitly check environment variable against `None` in matrix.py For consistency with `GITHUB_OUTPUT` at the bottom. --- diff --git a/.github/matrix.py b/.github/matrix.py index e03453aa4d..c58bb7acd4 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)