diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-06-05 15:26:11 +0200 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2024-06-20 01:16:51 +0200 |
commit | d6b7d77222f5fed485afd6b11ccfbdb244779ec7 (patch) | |
tree | e259761bbd4da8e637691ce5d762c7677fbcd69a /.github | |
parent | 8a4d45cf9b6f250f7a681de3344a79e6f53dc092 (diff) |
CI/GitHub: Authenticate github requests to avoid throttling
(cherry picked from commit 41ef6071d4821dddfc186e3c868299df8e41b4f2)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/win-x64-build.yml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/.github/workflows/win-x64-build.yml b/.github/workflows/win-x64-build.yml index 70b90dc1acb..ab9edc45000 100644 --- a/.github/workflows/win-x64-build.yml +++ b/.github/workflows/win-x64-build.yml @@ -23,8 +23,12 @@ jobs: - name: Download and install Openssl 3.x run: | - $VersionsUrl = "https://raw.githubusercontent.com/slproweb/opensslhashes/master/win32_openssl_hashes.json" - $Url = (Invoke-RestMethod $VersionsUrl).files.PSObject.Properties | + $VersionsUrl = "https://api.github.com/repos/slproweb/opensslhashes/contents/win32_openssl_hashes.json" + $Headers = @{ + Accept="application/vnd.github.raw+json" + Authorization="Bearer ${{ secrets.GITHUB_TOKEN }}" + } + $Url = (Invoke-RestMethod $VersionsUrl -Headers $Headers).files.PSObject.Properties | Select-Object -ExpandProperty Value | Where-Object { $_.arch -eq 'INTEL' } | Where-Object { $_.bits -eq '64' } | |