]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CI: Unify the `GITHUB_TOKEN` name across matrix.py and vtest.yml
authorTim Duesterhus <tim@bastelstu.be>
Thu, 29 Dec 2022 16:40:27 +0000 (17:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 3 Jan 2023 15:28:34 +0000 (16:28 +0100)
This makes naming a little clearer in matrix.py, because the name matches the
name of the actual secret.

.github/matrix.py
.github/workflows/vtest.yml

index ee44d48bc6541073c090bbedad2ea2312cb73885..e03453aa4d891df3c2b8dc64c18905ec667d1533 100755 (executable)
@@ -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)
index f26415a2059329d4b6e3ae578d9b1a8d682b9952..5137099de8ae7c9c825089b6fba89cfa01060461 100644 (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 }}"