[release/v7.6] Fix GitHub API rate limit errors in test actions #26492
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport of #26489 to release/v7.6
Triggered by @TravisEz13 on behalf of @app/copilot-swe-agent
Original CL Label: CL-BuildPackaging
/cc @PowerShell/powershell-maintainers
Impact
REQUIRED: Choose either Tooling Impact or Customer Impact (or both). At least one checkbox must be selected.
Tooling Impact
Fixes intermittent CI failures when multiple test jobs run concurrently and hit GitHub API rate limits (60 req/hr unauthenticated). By adding GITHUB_TOKEN authentication, test actions get 5000 req/hr limit, preventing rate limit errors when fetching DSC releases during test setup.
Customer Impact
Regression
REQUIRED: Check exactly one box.
This is not a regression.
Testing
Original PR verified by running affected workflows in fork and confirming CI passes. Backport tested by applying clean cherry-pick to updated release/v7.6 branch - no conflicts encountered. The fix adds GitHub token authentication to API calls in test actions, preventing rate limit errors during concurrent CI runs.
Risk
REQUIRED: Check exactly one box.
Medium risk: Changes affect CI/CD test infrastructure across all platforms (Linux, macOS, Windows). However, the change is minimal (adding authentication headers), uses built-in GITHUB_TOKEN (no new secrets), and has been validated in master. Risk is isolated to test execution - does not affect production code.