Repository navigation
Conversation
The `codemode:artifacts` description called `share()`'s URL clone-ready. Code that took it at its word cloned from a URL with a token in it, and git saves a clone's URL in `.git/config`, so the token stayed in the Workspace after the run. The docs already say to clone and push with the git module and the token in an `Authorization` header, and to pass `share()`'s URL to a shell command through `env`. Say the same in the description the model reads.
🦋 Changeset detectedLatest commit: 053835e The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
commit: |
scuffi
marked this pull request as ready for review
November 27, 2026 10:48
A token's plaintext ends in an `?expires=` hint that isn't part of the credential, as credentialURL() already knows. The description and the docs example sent the whole plaintext as a bearer token, so a clone or push following them would fail to authenticate. Tell code to cut the hint off first, and link the docs from the changeset.
| "@cloudflare/computer": patch | ||
| --- | ||
|
|
||
| `codemode:artifacts` tells code to clone and push with a token in a header, as [the docs](https://github.com/cloudflare/computer/blob/main/docs/17_isolate_javascript.md#codemodeartifacts) do, rather than calling `share()`'s URL clone-ready: git saves a clone's URL, token and all, in `.git/config`. |
There was a problem hiding this comment.
🔍 Release link misses header example
The release note links to codemode:artifacts, which shows the shell URL workflow. The header example sits above that anchor under codemode:git.
Was this helpful? React with 👍 or 👎 to provide feedback.
ben-reitz
approved these changes
Nov 27, 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.
The description the model reads for
codemode:artifactssaysshare()"returns a clone-ready URL with a token embedded". A model that takes it at its word clones from that URL withcodemode:git, and git saves a clone's URL in.git/config, token and all, so the token stays in the Workspace after the run and any later code can read it.The docs already say how to do it: clone and push with the git module, passing the repository's
remoteas the URL and the token fromcreateToken()in anAuthorizationheader, and keepshare()'s URL for git in a shell command, passed throughenvrather than in the command text. This puts that in the description:It names "the git module" rather than
codemode:git, so it stays right under a backend'sscheme.Testing
artifacts.test.tschecks that the description tells code to send the token in a header and no longer calls the URL clone-ready.