Compare commits
1 Commits
main
...
auth-using
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bb893e63de |
3
.github/workflows/copilot-setup-steps.yml
vendored
3
.github/workflows/copilot-setup-steps.yml
vendored
@ -17,4 +17,5 @@ jobs:
|
||||
shell: pwsh
|
||||
run: |
|
||||
./eng/common/mcp/azure-sdk-mcp.ps1 -InstallDirectory $HOME/bin
|
||||
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@ -139,7 +139,14 @@ function Install-Standalone-Tool (
|
||||
if (!$Version -or $Version -eq "*") {
|
||||
Write-Host "Attempting to find latest version for package '$Package'"
|
||||
$releasesUrl = "https://api.github.com/repos/$Repository/releases"
|
||||
$releases = Invoke-RestMethod -Uri $releasesUrl
|
||||
|
||||
# Use GitHub token if available to avoid rate limiting
|
||||
$headers = @{}
|
||||
if ($env:GITHUB_TOKEN) {
|
||||
$headers["Authorization"] = "Bearer $env:GITHUB_TOKEN"
|
||||
}
|
||||
|
||||
$releases = Invoke-RestMethod -Uri $releasesUrl -Headers $headers
|
||||
$found = $false
|
||||
foreach ($release in $releases) {
|
||||
if ($release.tag_name -like "$Package*") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user