Repository navigation
Rebrand: link the secret refs when the product keeps the baseline's name - #11
Merged
Merged
Conversation
The rebrand holds every value it has already written before its rules run. With reponame equal to the baseline slug, that held the project half of secret://ws_CHANGE_ME/edge-middleware-recipes/... as well, so the secret-ref rule never matched and the workspace stayed ws_CHANGE_ME. A console build that kept the name failed secret resolution on both deploy lanes (vijayakrishnans/edge-middleware-recipes, run 43017066479). The secret-ref rewrite now runs before the guard; it is idempotent. testing/rebrand.test.sh covers the same-name product over three passes. Records risk EM-N. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
A console build that kept the baseline's own name (
vijayakrishnans/edge-middleware-recipes, run 43017066479) shipped:and both deploy lanes failed before their first step:
Ref workspace "ws_CHANGE_ME" does not name this run's workspace.intent.yamlhad the right workspace.Cause.
rebrand.mjsholds every value it has already written (theguardedlist) before its rules run, so a later pass can't rewrite them.reponameis in that list. Whenreponame === baseline.slug, every bareedge-middleware-recipesis held, including the project half of the secret ref, so thesecret://<ws>/<slug>/rule never matches. A dry run with the build's own.rebrand/values.jsonreported only the subdomain rule.Fix. The secret-ref rewrite runs before the guard. It rewrites any workspace segment to the target, so re-running it is idempotent (a second pass over the build's values touches 0 files).
Test.
testing/rebrand.test.shadds the same-name case over three passes. It fails onmainwith exactly the shippedws_CHANGE_MEand passes with the fix. rebrand, manifest, phases, coverage, retouch, bootstrap-defer, placement and leak all pass locally. Records risk EM-N.After merge: tag
baseline-v7and bump the orun-cloud registry row.🤖 Generated with Claude Code