Skip to content

ci: drop VSCODE_OSS token conditional from pr.yml compile job - #313314

Merged
Michael Lively (Yoyokrazy) merged 1 commit into
mainfrom
milively/relight-1es-runners-no-token
Apr 29, 2026
Merged

Michael Lively (Yoyokrazy) merged 1 commit into
mainfrom
milively/relight-1es-runners-no-token

Conversation

@Yoyokrazy

@Yoyokrazy Michael Lively (Yoyokrazy) commented Apr 29, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #313128. Removes the VSCODE_OSS fork-aware conditional from pr.yml's compile job (Install dependencies and Compile & Hygiene steps), reverting the token back to plain secrets.GITHUB_TOKEN.

The VSCODE_OSS PAT isn't needed here. The 403s seen during #311975 weren't caused by a missing/wrong token — they were a side effect of an invalidated node_modules cache: the Install dependencies step ran when it shouldn't have, which produced the cross-repo api.github.com traffic that surfaced the 403s in the first place. With a healthy cache, the compile job doesn't make those calls at all, so GITHUB_TOKEN (with permissions: contents: read from #304929) is sufficient for anything that does leak through.

Session Context
  • Real cause of ci: switch PR workflows back to 1ES self-hosted runners with JobId #311975 failures: the node_modules cache key changed and forced npm ci + cross-repo release fetches to run on 1ES, where the failure mode showed up as 403s. Token wasn't the issue.
  • VSCODE_OSS is still used in pr-node-modules.yml for npm ci and built-in extensions — those are the genuinely needed sites and aren't touched here.
  • Other reusable workflows (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 with GITHUB_TOKEN.

Follow-up to #313128. The VSCODE_OSS fallback isn't needed for the
api.github.com calls in core-ci — secrets.GITHUB_TOKEN already
authenticates those reads with permissions: contents: read (added in
#304929), so we don't hit the anonymous rate limit on 1ES.
Copilot AI review requested due to automatic review settings April 29, 2026 19:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 dependencies step to set GITHUB_TOKEN to ${{ secrets.GITHUB_TOKEN }}.
  • Update the Compile & Hygiene step to set GITHUB_TOKEN to ${{ 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

@Yoyokrazy
Michael Lively (Yoyokrazy) merged commit 41499ac into main Apr 29, 2026
30 checks passed
@Yoyokrazy
Michael Lively (Yoyokrazy) deleted the milively/relight-1es-runners-no-token branch April 29, 2026 21:41
@vs-code-engineering vs-code-engineering Bot added this to the 1.119.0 milestone Apr 29, 2026
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jun 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants