You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit af7f02b
Browse filesBrowse the repository at this point in the historyBrowse files
test(oauth): check OAuth scopes against a live server
Add `pnpm test:scopes`, which signs in and refreshes the token through the
extension's OAuth flow against a throwaway deployment
(test/scopes/compose.yaml). It checks that login and refresh both grant
exactly the requested scopes, then runs a probe for every Coder API method
the extension calls and for the requests `coder ssh` and `coder start`
make, using the refreshed token.
`scopeProbes.test.ts` runs in `pnpm test` and uses the TypeScript checker
to find every CoderApi method src/ references, failing when one has no
probe or listed reason.
The workflow runs the suite on relevant PRs against a pinned coder-preview
image, and nightly against `latest`. A failed nightly run comments on an
open tracking issue, or opens one. Release images ignore requested scopes,
and GHCR deletes preview images after a few weeks, so
`pnpm sync:coder-preview` pins the newest one.
0 commit comments