This repository was archived by the owner on Oct 14, 2026. It is now read-only.
Repository navigation
tod: use the Coder user secrets ONEDEV_SERVER_URL and ONEDEV_TOKEN - #23
Merged
Merged
Conversation
- /usr/local/bin/tod is now a wrapper (build/tod-env.sh): when ONEDEV_ACCESS_TOKEN is unset, it uses ONEDEV_TOKEN; the binary moves to /usr/local/lib/tod/tod. - Remove the onedev_url template variable: ONEDEV_SERVER_URL comes from the user secret (one source, no precedence question). - Smoke test checks the mapping; READMEs: set the two user secrets, or tod config set. Image tags: node/php v0.8.0, ops v0.7.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Users already have Coder user secrets
ONEDEV_SERVER_URLandONEDEV_TOKENin their workspaces. tod readsONEDEV_SERVER_URLdirectly, but the token asONEDEV_ACCESS_TOKEN./usr/local/bin/todis a wrapper (build/tod-env.sh): ifONEDEV_ACCESS_TOKENis unset andONEDEV_TOKENis set, it exportsONEDEV_ACCESS_TOKEN=$ONEDEV_TOKEN, thenexec /usr/local/lib/tod/tod. Works for terminals, scripts and Claude Code.onedev_urltemplate variable (added in Add the OneDev CLI (tod) and its Claude Code skills to all images #22): the URL comes from the user secret, so there is one source and no question which of template env and user secret wins. Removeonedev_urlfrom yourvars.yaml(done in this workspace) before the next release, or the push fails on an undeclared variable.tod config setstill works (config file).ONEDEV_TOKEN.v0.8.0, php-wordpressv0.8.0, opsv0.7.0.main.tfis otherwise back to its pre-Add the OneDev CLI (tod) and its Claude Code skills to all images #22 content.Checks
ONEDEV_TOKENonly → used;ONEDEV_ACCESS_TOKEN=""explicit → kept empty; both set →ONEDEV_ACCESS_TOKENwinsnode-jsbuild: smoke test passes;just lint,just validatepass🤖 Generated with Claude Code