diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-06-05 15:26:11 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2024-06-05 15:26:11 +0200 |
commit | 41ef6071d4821dddfc186e3c868299df8e41b4f2 (patch) | |
tree | 42b7c55d9f6bee1b1438bb583635c8f612e04b70 /.github | |
parent | 01026445bbda7ffd979ab53854f62b40e21ea4b9 (diff) |
CI/GitHub: Authenticate github requests to avoid throttling
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 18ef7563d47..68979619227 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' } | |