Repository navigation
ci: sign in to OpenCode with the runner's OIDC identity - #172
Merged
Merged
Conversation
viztor
force-pushed
the
ci/opencode-oidc
branch
2 times, most recently
from
November 14, 2026 00:09
74732e4 to
2974780
Compare
viztor
force-pushed
the
ci/opencode-oidc
branch
from
November 14, 2026 00:14
2974780 to
5191b3c
Compare
This was referenced Nov 14, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Replaces the stored OpenCode access key the live-gateway e2e used with the
runner's own OIDC identity: GitHub mints a short-lived JWT for
https://opencode.ai/console, OpenCode Console exchanges it for an access token,and only that token reaches
pnpm run test:e2e. Nothing long-lived is stored inthe repository or in Actions secrets any more.
permissions: id-token: write+contents: readon thee2ejob only.secrets, so the sign-in step exits with a notice and the suite keeps its
existing keyless behaviour: the endpoints are still checked, the credentialed
cases skip.
suite already reads (
OPENCODE_API_KEY,OPENCODE_GO_API_KEY).exchange binds it to the audience and the GitHub OIDC subject, so the id alone
grants nothing.
Verified locally:
test/freshness-scope.test.ts,test/vendor-version.test.tsand
test/node-engine.test.tspass. The proof of the exchange is this pullrequest's own
e2e · live gatewayrun.