Skip to content

Commit ddc1603

Browse files
committed
fix: bypass OIDC token exchange (anomalyco/opencode#37823)
Repos created after 2026-07-15 receive GitHub's new immutable OIDC subject claim format. The opencode GitHub action fails to parse owner/repo from the new claim, gets a 404 from the App-token exchange (which returns non- JSON), and dies with 'Failed to parse JSON'. Workaround: set use_github_token=true to use GITHUB_TOKEN directly, skipping the broken OIDC -> opencode.ai/exchange_github_app_token flow.
1 parent 31d5f0f commit ddc1603

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/opencode-ml-agent.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,9 @@ jobs:
121121
with:
122122
model: ${{ github.event.inputs.model || 'opencode/deepseek-v4-flash-free' }}
123123
prompt: ${{ steps.prompt.outputs.prompt }}
124+
# Workaround for anomalyco/opencode#37823: repos created after
125+
# 2026-07-15 receive GitHub's new immutable OIDC subject claim
126+
# format, which breaks the App-token exchange path inside
127+
# `opencode github run` (owner/repo parsed wrong -> 404 -> "Failed
128+
# to parse JSON"). Bypass OIDC and use GITHUB_TOKEN directly.
129+
use_github_token: true

0 commit comments

Comments
 (0)