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.
diff --git a/.github/matrix.py b/.github/matrix.py
index ee44d48..e03453a 100755
--- a/.github/matrix.py
+++ b/.github/matrix.py
@@ -29,8 +29,8 @@
@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 f26415a..5137099 100644
--- a/.github/workflows/vtest.yml
+++ b/.github/workflows/vtest.yml
@@ -26,7 +26,7 @@
- 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 }}"