CI: Unify the `GITHUB_TOKEN` name across matrix.py and vtest.yml

This makes naming a little clearer in matrix.py, because the name matches the
name of the actual secret.
This commit is contained in:
Tim Duesterhus 2022-12-29 17:40:27 +01:00 committed by Willy Tarreau
parent fd7931e7f3
commit 96e03e1a89
2 changed files with 3 additions and 3 deletions

4
.github/matrix.py vendored
View File

@ -29,8 +29,8 @@ def clean_ssl(ssl):
@functools.lru_cache(5)
def determine_latest_openssl(ssl):
headers = {}
if environ.get('GITHUB_API_TOKEN'):
headers["Authorization"] = "token {}".format(environ.get('GITHUB_API_TOKEN'))
if environ.get('GITHUB_TOKEN'):
headers["Authorization"] = "token {}".format(environ.get('GITHUB_TOKEN'))
request = urllib.request.Request('https://api.github.com/repos/openssl/openssl/tags', headers=headers)
openssl_tags = urllib.request.urlopen(request)

View File

@ -26,7 +26,7 @@ jobs:
- uses: actions/checkout@v3
- name: Generate Build Matrix
env:
GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
id: set-matrix
run: python3 .github/matrix.py "${{ github.ref_name }}"