mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
CI/GitHub: Authenticate github requests to avoid throttling
This commit is contained in:
8
.github/workflows/win-x64-build.yml
vendored
8
.github/workflows/win-x64-build.yml
vendored
@@ -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' } |
|
||||
|
||||
Reference in New Issue
Block a user