diff options
author | Tim Duesterhus <tim@bastelstu.be> | 2022-12-29 17:40:27 +0100 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2023-01-03 16:28:34 +0100 |
commit | 96e03e1a89e6e10ec3df335fbcba6aee4765e583 (patch) | |
tree | ae852b43b1446afc8d5c3d4d0d98feb991f6625c /.github | |
parent | fd7931e7f3a1b9568f9d9e7a95d8d444203c961f (diff) | |
download | haproxy-96e03e1a89e6e10ec3df335fbcba6aee4765e583.tar.gz |
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.
Diffstat (limited to '.github')
-rwxr-xr-x | .github/matrix.py | 4 | ||||
-rw-r--r-- | .github/workflows/vtest.yml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/.github/matrix.py b/.github/matrix.py index ee44d48bc..e03453aa4 100755 --- a/.github/matrix.py +++ b/.github/matrix.py @@ -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) diff --git a/.github/workflows/vtest.yml b/.github/workflows/vtest.yml index f26415a20..5137099de 100644 --- a/.github/workflows/vtest.yml +++ b/.github/workflows/vtest.yml @@ -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 }}" |