diff options
author | Tim Duesterhus <tim@bastelstu.be> | 2022-12-29 17:40:28 +0100 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2023-01-03 16:28:34 +0100 |
commit | e327e41430280a2d6eaca17550f61bd2a3e99c56 (patch) | |
tree | 7da2dd014edba9b4c55ddc2108ed04661d2462cf /.github | |
parent | 96e03e1a89e6e10ec3df335fbcba6aee4765e583 (diff) | |
download | haproxy-e327e41430280a2d6eaca17550f61bd2a3e99c56.tar.gz |
CI: Explicitly check environment variable against `None` in matrix.py
For consistency with `GITHUB_OUTPUT` at the bottom.
Diffstat (limited to '.github')
-rwxr-xr-x | .github/matrix.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |