From 926be01c39d9c93eded7f9bb86e481c3969ddc56 Mon Sep 17 00:00:00 2001 From: Andrei Horodniceanu Date: Mon, 6 May 2024 18:12:00 +0300 Subject: [PATCH] .github/workflows/test.yml: Add GITHUB_TOKEN to curl command line Signed-off-by: Andrei Horodniceanu --- .github/workflows/test.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7cf43df..2920606 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -149,7 +149,12 @@ jobs: run: | if [[ ${{ matrix.dub }} == 'latest' ]] then - DUB_VERSION_FOR_TEST=$(curl -s https://api.github.com/repos/dlang/dub/releases/latest | jq -r '.tag_name | sub("v(?.+)"; .v)') + curlCmd=( + curl -s + --header "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" + https://api.github.com/repos/dlang/dub/releases/latest + ) + DUB_VERSION_FOR_TEST=$("${curlCmd[@]}" | jq -r '.tag_name | sub("v(?.+)"; .v)') else DUB_VERSION_FOR_TEST=${{ matrix.dub }} fi