This repository was archived by the owner on Nov 30, 2026. It is now read-only.
Repository navigation
Sync environments with the current API spec: read-only build token - #304
Merged
Merged
Conversation
The API now reports uses_read_only_build_token on an environment and accepts it on update. The Environment DTO exposes it, so --json and --fields can return it, and environment:update takes --uses-read-only-build-token and offers it in the field picker. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T1Sq4VgnsPT8SHCykH1gmJ
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.
The Cloud API spec changed. Environments can now clone their repository with a read-only token during builds.
Findings fixed
UpdateEnvironmentRequest.uses_read_only_build_tokenboolean: "Whether builds clone the repository with a read-only token. Builds can still read other repositories in the same GitHub account or organization. Only available for GitHub repositories. Applies on the next deployment."environment:updatenow takes--uses-read-only-build-tokenand offers "Read-only build token" in the field picker, after "Deploy hook".EnvironmentResource.attributes.uses_read_only_build_tokenrequired.boolean.Environmentnow hasusesReadOnlyBuildToken, so--jsonand--fieldsreturn it andenvironment:updateshows it as the previous value.For review
Left alone
GET /meta/tokenandDELETE /meta/token: new. They return the calling token's name, abilities and expiry, and revoke it. They would be new commands (or a change toauth:token), so they are a proposal, not a fix.servingon create,display_name, maskingdeploy_hook_url, thepull_requestshape, theinternal-networkingendpoints, the edge-network ruleset and rule endpoints, andGET /environments/{environment}/queued-deployments.Branch note
api-sync/environmentsheld only #303's pre-squash commits, whose tree matchesmain. I restarted the branch frommain.Tests
uses_read_only_build_token,environment:get --fields=usesReadOnlyBuildTokenreturns it, and the interactive picker sendsfalsewhen the confirm is declined.LARAVEL_CLOUD_TOKEN: 846 pass.RepoConfigTestran separately without the token: 14/14 pass.PromptFallbackTestwas skipped because it hangs in this container. PHPStan and Pint are clean.Demo
environment:updatelists "Read-only build token" in the field picker and asks whether to turn it on.Generated by Claude Code