diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml index 0241c1cc..f6ecad82 100644 --- a/.github/workflows/winget.yml +++ b/.github/workflows/winget.yml @@ -14,7 +14,11 @@ jobs: run: | $wingetPackage = "SteamRE.DepotDownloader" - $github = Invoke-RestMethod -uri "https://api.github.com/repos/SteamRE/DepotDownloader/releases" + $headers = @{ + Authorization = "Bearer ${{ secrets.GITHUB_TOKEN }}" + } + + $github = Invoke-RestMethod -uri "https://api.github.com/repos/SteamRE/DepotDownloader/releases" -Headers $headers $targetRelease = $github | Where-Object -Property name -match '^DepotDownloader' | Select -First 1 $assets = $targetRelease | Select -ExpandProperty assets -First 1