]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CI: Explicitly check environment variable against `None` in matrix.py
authorTim Duesterhus <tim@bastelstu.be>
Thu, 29 Dec 2022 16:40:28 +0000 (17:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 3 Jan 2023 15:28:34 +0000 (16:28 +0100)
For consistency with `GITHUB_OUTPUT` at the bottom.

.github/matrix.py

index e03453aa4d891df3c2b8dc64c18905ec667d1533..c58bb7acd4b75107e2dc3c84b8bff40e088e6108 100755 (executable)
@@ -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)