CI: Explicitly check environment variable against None
in matrix.py
For consistency with `GITHUB_OUTPUT` at the bottom.
This commit is contained in:
parent
96e03e1a89
commit
e327e41430
2
.github/matrix.py
vendored
2
.github/matrix.py
vendored
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user