]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CI: github: use the GITHUB_TOKEN instead of a manually generated token
authorWilliam Lallemand <wlallemand@haproxy.org>
Fri, 23 Dec 2022 13:40:04 +0000 (14:40 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 23 Dec 2022 14:19:25 +0000 (15:19 +0100)
Github allows to use a auto generated GITHUB_TOKEN so we don't need to
handle the token in the secret configuration.

https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret

.github/workflows/vtest.yml

index 8c13d13daab1a5ef7ed79ccfcdd6258f46b87c9b..f26415a2059329d4b6e3ae578d9b1a8d682b9952 100644 (file)
@@ -25,6 +25,8 @@ jobs:
     steps:
       - uses: actions/checkout@v3
       - name: Generate Build Matrix
+        env:
+          GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         id: set-matrix
         run: python3 .github/matrix.py "${{ github.ref_name }}"