Repository navigation
ci: drop VSCODE_OSS token conditional from pr.yml compile job - #313314
Merged
Michael Lively (Yoyokrazy) merged 1 commit intoApr 29, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Removes the fork-aware VSCODE_OSS PAT conditional from the pr.yml compile job so the workflow consistently uses the runner-issued secrets.GITHUB_TOKEN, relying on the workflow’s permissions: contents: read for authenticated GitHub API access and rate limits.
Changes:
- Update the
Install dependenciesstep to setGITHUB_TOKENto${{ secrets.GITHUB_TOKEN }}. - Update the
Compile & Hygienestep to setGITHUB_TOKENto${{ secrets.GITHUB_TOKEN }}.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/pr.yml | Simplifies token selection in the compile job by removing the VSCODE_OSS conditional and using the standard GITHUB_TOKEN consistently. |
Copilot's findings
- Files reviewed: 1/1 changed files
- Comments generated: 0
Michael Lively (Yoyokrazy)
marked this pull request as ready for review
April 29, 2026 19:26
Michael Lively (Yoyokrazy)
requested review from
TylerLeonhardt,
João Moreno (joaomoreno),
Ladislau Szomoru (lszomoru) and
Raymond Zhao (rzhao271)
as code owners
April 29, 2026 19:26
Michael Lively (Yoyokrazy)
enabled auto-merge (squash)
April 29, 2026 19:26
Raymond Zhao (rzhao271)
approved these changes
Apr 29, 2026
Michael Lively (Yoyokrazy)
deleted the
milively/relight-1es-runners-no-token
branch
April 29, 2026 21:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Follow-up to #313128. Removes the
VSCODE_OSSfork-aware conditional frompr.yml'scompilejob (Install dependenciesandCompile & Hygienesteps), reverting the token back to plainsecrets.GITHUB_TOKEN.The
VSCODE_OSSPAT isn't needed here. The 403s seen during #311975 weren't caused by a missing/wrong token — they were a side effect of an invalidatednode_modulescache: theInstall dependenciesstep ran when it shouldn't have, which produced the cross-repoapi.github.comtraffic that surfaced the 403s in the first place. With a healthy cache, the compile job doesn't make those calls at all, soGITHUB_TOKEN(withpermissions: contents: readfrom #304929) is sufficient for anything that does leak through.Session Context
node_modulescache key changed and forcednpm ci+ cross-repo release fetches to run on 1ES, where the failure mode showed up as 403s. Token wasn't the issue.VSCODE_OSSis still used inpr-node-modules.ymlfornpm ciand built-in extensions — those are the genuinely needed sites and aren't touched here.pr-linux-test.yml,pr-win32-test.yml,pr-darwin-test.yml) only fetch built-in extensions on cache miss and already work fine on 1ES withGITHUB_TOKEN.