Repository navigation
fix(deploy-cloudflare): remove require-access, and require visibility (#177) - #276
Conversation
…isibility (#177) dc-inputs gains the three forms that were accepted with a warning while require-access was deprecated: neither input, require-access: 'true' and require-access: 'false', each without visibility. Each must now fail in validation, with no visibility output and nothing installed. The 'yes' case goes, since every value is now refused alike; the case with both inputs set stays. dc-refuses-ungated drops its two deprecated-form cases, which dc-inputs now covers, and its positive control, which turned the gate off with require-access: 'false'. No input turns the gate off now; the private-gated case in dc-refuses-mismatch is the positive control for a private site. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WT8bMZv7GrSyZf3fY4Tkzj
…#177) As the v0.14.0 and v0.15.0 deprecations said. Passing require-access, with any value, now fails the first step with a message that says which visibility replaces it, and so does leaving out visibility, which used to check the site as private with a warning. require-access: 'false' was the only way to turn the checks off, and the unchecked mode it opened goes with it: the warning step, the conditions that skipped the check before the deploy and the alias's check, and the summary's unchecked heading and rows. Every deploy is now checked as private or public, and the visibility output is set on every run whose inputs pass. require-access stays declared, so that the action sees it and can refuse it: an undeclared input gets only a runner warning. It is not printed, so it leaves the line-break check. visibility is required: true, which the manual's tables and actionlint now show. visibility's and require-access's descriptions, the visibility output's, the chapter's Behaviour, "Moving from require-access" and Troubleshooting, and TESTING's row follow. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WT8bMZv7GrSyZf3fY4Tkzj
Brings in #271 (#217). No conflicts. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WT8bMZv7GrSyZf3fY4Tkzj
A new Removed section under [Unreleased], between where Deprecated goes and Documentation, with one BREAKING entry and its migration. The maintainer chose the section and the wording. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WT8bMZv7GrSyZf3fY4Tkzj
There was a problem hiding this comment.
Note
Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.
🟢 Approval recommended
The change fully updates the action’s input validation contract and aligns documentation, tests, and the changelog with the new required visibility behavior and removal of require-access, with no unresolved issues called out beyond these coordinated updates.
No open issues 🎉
What changed in this PR
This pull request implements a breaking change to deploy-cloudflare by removing the deprecated require-access input and requiring visibility, eliminating the prior “unchecked” deployment path and ensuring deploys are always validated as private or public. It also updates documentation, tests, and the changelog to reflect the new contract.
Changes:
- Make
visibilityrequired and remove the “unchecked” mode; refuse use ofrequire-accessat validation time. - Update user and developer documentation (including migration/troubleshooting guidance) to match the new input rules.
- Expand the action test harness to cover newly-invalid input shapes and record the breaking change in
CHANGELOG.md.
| File | Summary |
|---|---|
docs/user/actions/deploy-cloudflare.md |
Updates generated docs, migration guidance, and troubleshooting; ensure error-message wording is consistent with the action (notably for cases where both inputs are set). |
docs/dev/TESTING.md |
Updates the testing matrix to include the new/removed input-validation scenarios for deploy-cloudflare. |
deploy-cloudflare/action.yml |
Enforces required visibility, removes unchecked behavior, and rejects require-access; adjust wording to match actual behavior around empty require-access, and refine the removal error message to avoid misleading migrations when visibility is already set. |
CHANGELOG.md |
Adds a breaking “Removed” entry documenting require-access removal and required visibility; align wording with actual rejection behavior (non-empty require-access). |
.github/workflows/test-actions.yml |
Extends harness coverage for missing-visibility and removed-input forms; removes/updates cases tied to the former unchecked path. |
This pull request requires changes.
Review effort: Balanced
… beside a valid visibility (#177) Copilot's review of #276. With visibility already private or public, the removal message's migration for each require-access value was beside the point: the caller need only remove require-access. It now says so, and keeps the full migration for a workflow without a valid visibility. require-access's description and the chapter said that any value fails the job, where an empty one, the same as leaving it out, does not; they now say any value but an empty one. The troubleshooting entry covers both messages. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WT8bMZv7GrSyZf3fY4Tkzj
|
On Copilot's review notes, which are in its summary table rather than inline:
I re-ran the validation step locally for all twelve cases, and the docs check, actionlint and lint-shell are clean. Claude Code (on behalf of mmcky) |
deploy-cloudflare'srequire-accessis removed, andvisibilityis required. #177 replacedrequire-accesswithvisibility. v0.14.0 deprecatedrequire-access, and leaving out both inputs, saying both would become errors in the next minor release. v0.15.0 moved that to v0.16.0, so that sites had a release's notice (CHANGELOG,[0.15.0], Deprecated). The maintainer confirmed on 2026-11-05 that it goes in v0.16.0. This PR carries it out.require-access: 'false'was the only way to deploy with no check at all. With it goes theuncheckedmode it opened: from now on every deploy is checked asprivateorpublic, before the upload, after the deploy and on the alias.visibility: privateorpublicvisibility is required: set it to private, for a site behind Access, or public.require-access: 'true'require-access has been removed: use visibility. For require-access: 'true', set visibility: private. For require-access: 'false', …require-access: 'false'visibilityoutput emptyrequire-accesswith any other valuemust be 'true' or 'false'visibility and require-access are both setrequire-access has been removed: remove it, and keep visibility: private.(orpublic)require-accessholding a line breakrequire-access must be a single linerequire-accessis never printed now, so it leaves the line-break checkrequire-access: ''Callers
Before writing the CHANGELOG entry I listed every repository in the QuantEcon org, 307 of them (28 archived), and read every workflow file on each default branch through GraphQL: 347 files, with no API errors. I parsed each step that uses
quantecon/actions/deploy-cloudflare. A GitHub-wide code search forquantecon/actions/deploy-cloudflarefinds the same callers and none outside the org.@v0.12.0, and both pass neithervisibilitynorrequire-access, relying on the old default: a private site, withteam-domainset.require-access.visibility: private, and itsteam-domainstays.I sent the list and a draft entry to the organiser before writing the entry. The maintainer chose its section, a new⚠️ BREAKING, with a migration line, and names neither caller.
### Removed, and its wording. It is markedChanges
deploy-cloudflare/action.ymlrequire-accessfails first. Beside a validvisibilitythe message says only to remove it; otherwise it gives the migration for each of its values. An emptyvisibilityfails withvisibility is required. A private site withoutteam-domaingets the one message,visibility is private, so team-domain is required, now thatvisibilityis always set by then. The deprecation warnings and theUNCHECKEDfirst line go. Theuncheckedmode goes: the check before the deploy loses its condition and runs on every deploy, the "Warn that nothing is checked" step goes, the alias's check runs whenever there is an alias, and the summary loses its unchecked heading and rows. The check after the deploy already ran only when the one before it had passed, so it needs no change. Inputs:visibilityisrequired: true, with no default.require-accessstays declared, so that the action receives it and can refuse it: an undeclared input gets only a runner warning. Its description says it is removed. Thevisibilityoutput is set on every run whose inputs pass.docs/user/actions/deploy-cloudflare.mdrequire-access: 'false'skipping the checks becomes "No input turns the checks off". "Moving fromrequire-access" is a two-column table from each old form to its replacement. Troubleshooting gainsvisibility is requiredandrequire-access has been removed, in place ofvisibility and require-access are both set..github/workflows/test-actions.ymldc-inputsgains three cases, the forms that were accepted with a warning: neither input,require-access: 'true'andrequire-access: 'false', each with novisibility. Each must fail in validation, with novisibilityoutput and nothing installed. The'yes'case goes, since every value is refused alike now; the case with both inputs stays. 14 cases, up from 12.dc-refuses-ungatedloses its two deprecated-form cases, whichdc-inputsnow covers, and its positive control, which turned the gate off withrequire-access: 'false'. See below.docs/dev/TESTING.mddeploy-cloudflare's row names the new cases.CHANGELOG.md### Removedsection under[Unreleased], between Changed and Documentation, where Keep a Changelog puts it. The CHANGELOG has used Removed twice before.Two choices in the harness
visibility: ''in the three new cases.visibilityisrequired: truenow, and actionlint, which the gate runs, reads a local action'saction.ymland refuses a step that leaves out a required input.visibility: ''is what leaving it out gives the action, since it has no default: a composite action's input arrives empty either way. The comment above the cases says so.dc-refuses-ungated's positive control. It showed that the same inputs reach wrangler with the gate off, throughrequire-access: 'false', and its own comment said it would go withrequire-access. No input turns the gate off now.dc-refuses-mismatch'sprivate-gatedcase is the positive control for a private site: the same mode, against a stand-in for a gated Worker on the runner, passes the check and reaches wrangler. A comment indc-refuses-ungatedpoints at it. I considered avisibility: publiccontrol against the realworkers.dev, but whether a Worker that doesn't exist answers 404 or an error is outside this repository's control, and the stand-in's answer is not.What I checked, and how
The issue first, against
origin/mainat9644f17. I read #177, both Deprecated entries (v0.14.0 and v0.15.0) and the action as it is. Theuncheckedpath is where the brief said: validation (:127-175), thevisibilityoutput (:238), the check before the deploy (:267-271), the warning step (:299-302), the alias's check (:485) and the summary (:540-547). The proposal holds as the brief gives it. No other file in the repository mentionsrequire-accessexcept the CHANGELOG, the harness and two dated review logs under.qe/dev/log/, which are history and stay as they are.The new cases fail on
main. I pushed the harness commit alone, 2f26a8e, on top ofmain, and dispatched the harness there.dc-inputsfailed for exactly the three new cases:neitherandrequire-true:visibility is [private], so the inputs passed validation and the case failed later;require-false:$RUNNER_TEMP/deploy-cloudflare exists — an invalid input got as far as the wrangler install. In that run's annotations, the deprecation warning and "require-access is false, so this deploy does not check who can see the site" show where it went instead.dc-refuses-ungated, slimmed down, passed onmain, as it should. I then cancelled the run and deleted the branch.The validation step, case by case, locally. I ran its
run:script from eachaction.yml, asshell: bashruns it, for twelve cases, and compared:privateandpublicpass, and writevisibility, on both;main, neither input andrequire-access: 'true'pass as private, andrequire-access: 'false'passes asUNCHECKED, with an emptyvisibility. On this branch all three fail, with the messages in the table above, and write novisibility;require-access: 'yes', both inputs, andrequire-accessholding a line break fail on both. Now'yes'gets the migration message, and the other two, besidevisibility: private, get "remove it, and keep visibility: private". The line break never reaches the log;visibility: Public, a private site withoutteam-domainand a public one with it fail on both, with the same messages.Current with
main. The branch hasmainmerged in at 879ecc5 (#271), with no conflicts.git diff origin/main -- CHANGELOG.mdonly adds lines, all inside[Unreleased].Lint and docs.
python3 scripts/generate-docs.py --check --check-examples --actionlint …passes with actionlint 1.7.12. Every example in the manual already passesvisibility, so--check-examplesfinds none that leaves out the now-required input. actionlint over.github/workflows/reports nothing.scripts/lint-shell.pywith shellcheck 0.11.0 is clean: 56run:scripts in 8 actions, one fewer for the warning step.What to watch after merge
This ships in v0.16.0's staged release. The canary doesn't call
deploy-cloudflare, and no harness job deploys, so the first real proof is a consumer's first run after it moves its pin. For the two known callers, both pinned to@v0.12.0, that is when they addvisibility: private. Until then nothing changes for them.Not in this PR
@v0.12.0, or addingvisibilityto its workflow. That's their own repositories' change, when they choose to upgrade.check-access-gate.shand its modes, which don't change..qe/dev/log/that mentionrequire-access. They are history.Follows up #177, which is closed: this is the removal its sequencing and the two Deprecated entries promised.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WT8bMZv7GrSyZf3fY4Tkzj