From 4896ac0788105286cff2acd7465a6b0c77645423 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Mon, 24 Mar 2025 10:42:59 +0200 Subject: [PATCH] Add token in winget action --- .github/workflows/winget.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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