Repository navigation
Keep pull-request CI read-only - #9605
Conversation
Quest-Claim: 3f3bda68865c2fa0
A throwaway branch's workflow sees only the read-only MBX_R2_* pair and DISCORD_WEBHOOK, and every Environment refuses it. The quest is done. infra/README.md's Environment table now matches the live deployment policies. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 1 minute. View limit details
No actionable comments were generated in the recent review. WalkthroughThe infrastructure README now lists additional publish tag patterns and a specific merge queue pattern for cache-write. The CI read-only secrets quest document was deleted. Merge Risk:
|
|
quest land watch: the merge queue removed this pull request at dd7cd04 because its The land fixer works on it in the background, and the watcher re-enqueues it at the back of the queue once it is fixed or judged flaky, or hands it back here with what it needs.
…ler. Learn more at https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/telemetry.md
Total Upload: 1.18 KiB / gzip: 0.56 KiB
Your Worker has access to the following bindings:
Binding Resource
env.VIDEO (video-moq-dev) R2 Bucket
--dry-run: exiting now.
bun install v1.4.4 (38afee6c8)
+ @cloudflare/workers-types@5.20261115.1
+ typescript@7.0.2
+ wrangler@4.162.0
40 packages installed [133.00ms]
$ wrangler deploy --dry-run
⛅️ wrangler 4.162.0 (update available 4.168.0)
───────────────────────────────────────────────
Total Upload: 2.14 KiB / gzip: 0.92 KiB
Your Worker has access to the following bindings:
Binding Resource
env.APT (apt-moq-dev) R2 Bucket
--dry-run: exiting now.
bun install v1.4.4 (38afee6c8)
+ wrangler@4.162.0
37 packages installed [120.00ms]
bun install v1.4.4 (38afee6c8)
+ @cloudflare/workers-types@5.20261115.1
+ typescript@7.0.2
+ wrangler@4.162.0
40 packages installed [129.00ms]
$ wrangler deploy --dry-run
⛅️ wrangler 4.162.0 (update available 4.168.0)
───────────────────────────────────────────────
Total Upload: 1.44 KiB / gzip: 0.73 KiB
Your Worker has access to the following bindings:
Binding Resource
env.GO (go-moq-dev) R2 Bucket
--dry-run: exiting now.
bun test v1.4.4 (38afee6c8)
##[group]src/worker.test.ts:
(pass) serves each GOPROXY file with its type and cache lifetime [0.92ms]
(pass) HEAD returns the headers without a body [0.07ms]
(pass) a missing version, @latest, or a non-GOPROXY key is an uncached 404 [0.17ms]
(pass) only a GOPROXY path reads the bucket [0.06ms]
(pass) refuses writes [0.04ms]
##[endgroup]
5 pass
0 fail
35 expect() calls
Ran 5 tests across 1 file. [5.00ms]
bun install v1.4.4 (38afee6c8)
+ wrangler@4.162.0
37 packages installed [122.00ms]
bun install v1.4.4 (38afee6c8)
+ @cloudflare/workers-types@5.20261115.1
+ typescript@7.0.2
+ wrangler@4.162.0
40 packages installed [133.00ms]
$ wrangler deploy --dry-run
⛅️ wrangler 4.162.0 (update available 4.168.0)
───────────────────────────────────────────────
Total Upload: 7.71 KiB / gzip: 3.03 KiB
No bindings found.
--dry-run: exiting now.
bun install v1.4.4 (38afee6c8)
+ @cloudflare/workers-types@5.20261115.1
+ typescript@7.0.2
+ wrangler@4.162.0
40 packages installed [145.00ms]
$ wrangler deploy --dry-run
⛅️ wrangler 4.162.0 (update available 4.168.0)
───────────────────────────────────────────────
Total Upload: 2.18 KiB / gzip: 0.97 KiB
Your Worker has access to the following bindings:
Binding Resource
env.RELEASE (nix-moq-dev) R2 Bucket
env.CI (nix-ci-moq-dev) R2 Bucket
--dry-run: exiting now.
bun test v1.4.4 (38afee6c8)
##[group]src/worker.test.ts:
(pass) bucket reads > RELEASE service error 10001 makes GET and HEAD a non-cacheable miss [0.69ms]
(pass) bucket reads > RELEASE service error 10043 makes GET and HEAD a non-cacheable miss [0.07ms]
(pass) bucket reads > RELEASE preserves Error: get: Unauthorized (10002) [0.11ms]
(pass) bucket reads > RELEASE preserves Error: get: Access denied (10003) [0.01ms]
(pass) bucket reads > RELEASE preserves Error: get: No such bucket (10006)
(pass) bucket reads > RELEASE preserves Error: get: Invalid object name (10020) [0.01ms]
(pass) bucket reads > RELEASE preserves Error: get: Unknown failure (0)
(pass) bucket reads > RELEASE preserves Error: unrelated 10001 [0.05ms]
(pass) bucket reads > RELEASE preserves TypeError: bad binding [0.01ms]
(pass) bucket reads > CI service error 10001 makes GET and HEAD a non-cacheable miss [0.04ms]
(pass) bucket reads > CI service error 10043 makes GET and HEAD a non-cacheable miss [0.03ms]
(pass) bucket reads > CI preserves Error: get: Unauthorized (10002) [0.05ms]
(pass) bucket reads > CI preserves Error: get: Access denied (10003)
(pass) bucket reads > CI preserves Error: get: No such bucket (10006) [0.01ms]
(pass) bucket reads > CI preserves Error: get: Invalid object name (10020)
(pass) bucket reads > CI preserves Error: get: Unknown failure (0)
(pass) bucket reads > CI preserves Error: unrelated 10001
(pass) bucket reads > CI preserves TypeError: bad binding [0.02ms]
(pass) bucket reads > a missing binding is a configuration error [0.24ms]
(pass) bucket reads > a release miss checks CI and preserves the object's headers and body [0.38ms]
(pass) bucket reads > a release service error still serves the path from CI [0.15ms]
(pass) bucket reads > a plain miss stays cacheable [0.06ms]
(pass) bucket reads > cache metadata needs no bucket read [0.06ms]
##[endgroup]
23 pass
0 fail
78 expect() calls
Ran 23 tests across 1 file. [6.00ms]
bun install v1.4.4 (38afee6c8)
+ @cloudflare/workers-types@5.20261115.1
+ typescript@7.0.2
+ wrangler@4.162.0
40 packages installed [136.00ms]
$ wrangler deploy --dry-run
⛅️ wrangler 4.162.0 (update available 4.168.0)
───────────────────────────────────────────────
Total Upload: 2.08 KiB / gzip: 0.89 KiB
Your Worker has access to the following bindings:
Binding Resource
env.RPM (rpm-moq-dev) R2 Bucket
--dry-run: exiting now.
##[endgroup]
ci: check quest started
ci: check markdown passed in 12s
##[group]check markdown
bun install v1.4.4 (38afee6c8)
Resolving dependencies
Resolved, downloaded and extracted [1]
$ bun run --cwd js/libav build
$ bun build.ts
warning: ignoring untrusted flake configuration setting 'extra-substituters'.
Pass '--accept-flake-config' to trust it
warning: ignoring untrusted flake configuration setting 'extra-trusted-public-keys'.
Pass '--accept-flake-config' to trust it
warning: ignoring untrusted flake configuration setting 'fallback'.
Pass '--accept-flake-config' to trust it
+ @biomejs/biome@2.6.7
+ @moq/auth@workspace:js/auth
+ @moq/clock@workspace:js/clock
+ @moq/hang@workspace:js/hang
+ @moq/json@workspace:js/json
+ @moq/net@workspace:js/net
+ @moq/qmux@workspace:js/qmux
+ @moq/web-transport@0.1.6
+ concurrently@10.0.7
+ esbuild@0.28.2
+ fallow@3.44.0
+ fallow-type-aware@3.44.0
+ markdown-extensions@2.0.0
+ remark-cli@12.0.1
+ remark-frontmatter@5.0.0
+ remark-lint-list-item-indent@4.0.1
+ remark-lint-maximum-line-length@4.1.1
+ remark-lint-no-duplicate-headings@4.0.1
+ remark-lint-no-undefined-references@5.0.2
+ remark-preset-lint-consistent@6.0.1
+ remark-preset-lint-recommended@7.0.1
660 packages installed [2.50s]
##[endgroup]
ci: check shell started
ci: check gh passed in 12s
##[group]check gh
bun test v1.4.4 (38afee6c8)
##[group]sh/gh/alert.test.ts:
(pass) Discord alert policy for pull_request [0.19ms]
(pass) Discord alert policy for pull_request_target [0.10ms]
(pass) Discord alert policy for push [0.04ms]
(pass) Discord alert policy for schedule [0.03ms]
(pass) Discord alert policy for workflow_dispatch [0.14ms]
(pass) Discord alert policy for workflow_run [0.02ms]
(pass) cron workflows only alert on scheduled failures [9.32ms]
(pass) ordinary CI never subscribes to Discord alerts [0.11ms]
shared version: disabled until the release cut runs just version
(pass) alert coverage excludes CI-only workflows and retains release and nightly workflows [83.84ms]
##[endgroup]
9 pass
0 fail
277 expect() calls
Ran 9 tests across 1 file. [100.00ms]
�[32mNo findings to report. Good job!�[39m (�[1m�[93m32�[39m ignored, �[93m121�[39m suppressed�[0m)
alert.yml watches all 37 alertable workflows
..
----------------------------------------------------------------------
Ran 1 test in 0.146s
OK
......
----------------------------------------------------------------------
Ran 7 tests in 1.546s
OK
.
----------------------------------------------------------------------
Ran 1 test in 4.359s
OK
##[endgroup]
ci: check large_files started
ci: check large_files passed in 0s
##[group]check large_files
changed: base 0dfc6bf89038f368c5105bb90ed24079973268e7
##[endgroup]
ci: check text started
ci: check text passed in 0s
##[group]check text
##[endgroup]
ci: check toml started
ci: check toml passed in 0s
##[group]check toml
##[endgroup]
ci: check nix started
ci: check quest failed in 2s
ci: check nix cancelled in 1s
##[group]check quest
Dev-shell quest: /nix/store/kcnxhj2d4pqpq4jc1hf1jiv5pvqf0zl3-quest-556d816/bin/quest
quest: quest/m0/ci/mbx-b2.md:68: link does not resolve: /quest/m0/ci/read-only-secrets.md
##[endgroup]
ci: check shell cancelled in 1s
##[group]check nix
##[endgroup]
##[group]check shell
##[endgroup]
##[error]ci: check quest failed
ci: wall and CPU seconds per module
5 33 check biome
12 17 check markdown
12 24 check gh
6 9 check workers
2 2 check quest (failed)
1 0 check shell (cancelled)
0 0 check large_files
0 0 check text
0 0 check toml
1 0 check nix (cancelled)
13 89 whole run
error: recipe `ci` failed on line 121 with exit code 1
##[error]Process completed with exit code 1.
##[group]Run actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
with:
name: cargo-timings
path: target/cargo-timings/cargo-timing-*.html
if-no-files-found: ignore
retention-days: 14
compression-level: 6
overwrite: false
include-hidden-files: false
archive: true
env:
BASE: 0dfc6bf89038f368c5105bb90ed24079973268e7
CHECK_FAIL_FAST: 1
NEXTEST_TEST_THREADS: 24
MBX_CACHE_LINKS: 1
MBX_REMOTE_URL:
##[endgroup]
No files were found with the provided path: target/cargo-timings/cargo-timing-*.html. No artifacts will be uploaded.
Post job cleanup.
##[start-action display=Run jdx/mr-boxington-action@88acf2bb50552c7c508cbac13e5f8c576b95b1de;id=__799ed614-1603-4d7e-9d8b-18d64b5acb08.mbx]
##[end-action id=__799ed614-1603-4d7e-9d8b-18d64b5acb08.mbx;outcome=skipped;conclusion=skipped;duration_ms=0]
Post job cleanup.
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git version
git version 2.56.0
Temporarily overriding HOME='/var/cache/github-runner-work/_temp/34b19a73-7b50-43ac-8aff-5d0846474e60' before making global git config changes
Adding repository directory to the temporary git global config as a safe directory
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --global --add safe.directory /var/cache/github-runner-work/moq/moq
Removing SSH command configuration
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --local --name-only --get-regexp core\.sshCommand
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
Removing HTTP extra header
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
Removing includeIf entries pointing to credentials config files
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git config --local --name-only --get-regexp ^includeIf\.gitdir:
[command]/nix/store/i2m3w4ly2w6grrmk1j59rb7zp09bssia-git-2.56.0/bin/git submodule foreach --recursive git config --local --show-origin --name-only --get-regexp remote.origin.url
A job completed hook has been configured by the self-hosted runner administrator
##[group]Run '/nix/store/ajk9j3ljl36w9dicih57gyvbl3v6m72q-ci-cache-gc.sh/bin/ci-cache-gc.sh'
shell: /nix/store/lfm00fnq66xfgbn099vqckabyl5jllz6-bash-interactive-5.3p20/bin/bash --noprofile --norc -e -o pipefail {0}
##[endgroup]
evicted 0 objects and 0 action results (0 B logical); 49.9 GiB logical remain
evicted 0 objects and 0 action results (0 B logical); 49.9 GiB logical remain
Cleaning up orphan processes
(written by quest land watch) |
|
claude, claude-opus-5-5, medium effort land fixer note:
(written by claude, claude-opus-5-5, medium effort) |
|
quest land watch: armed auto-merge on this pull request at a9ae18d, so it joins the back of the merge queue once its required checks pass, with the land fixer's fix ( (written by quest land watch) |
Finishes quest/m0/ci/read-only-secrets.md: deletes it and syncs
infra/README.md's Environment table with the live deployment policies (publishandcache-writelisted fewer refs than they admit).No workflow change was needed: everything else the quest planned had already landed, and moq-dev/moq#8048 removed the last write secret,
CACHIX_AUTH_TOKEN. No repository or organization setting needs changing, sobin/repo-settingsin kixelated's dotfiles is untouched and noMaintainer:step remains.Impact
No public API, wire, or workflow change. Docs and quest file only.
Validation
The quest's Done check, run 2026-11-25 on throwaway branch
throwaway/read-only-secrets-check(workflow printing only whether each of 27 secret names is non-empty; run 45615903433); the branch is deleted.MBX_R2_ACCESS_KEY_ID,MBX_R2_SECRET_ACCESS_KEY(read-only) andDISCORD_WEBHOOK(org secret, left visible by the 2026-11-06 decision). Empty: every other name, includingCACHIX_AUTH_TOKEN, the 12publishsecrets,APP_*,NIX_*,CORPUS_*,JSR_TOKEN,GCP_SERVICE_ACCOUNT_KEY.alert,bot,cache-write,corpus,github-pages,npm,pub.dev,publish,pypi): all 9 refused to start (Branch ... is not allowed to deploy to <env> due to environment protection rules).gh api repos/moq-dev/moq/actions/permissions/workflow:default_workflow_permissions: read,can_approve_pull_request_reviews: false.gh secret listshows onlyMBX_R2_*at repository scope..github/workflows/: every job using a write secret or a publisher's OIDC identity names an Environment (or gates the step to tags);workflow_runandpull_request_targetjobs namebotoralert. A branch can always declare its ownpermissions, so its token stays harmless only because the rulesets protectmain,release, and release tags; that is outside this quest.Models
Size: S
Implementer: Claude Code, claude-sonnet-5-5, unknown (arm B)
Decisions
Follow-ups
None.
Review
mechanical fix by claude, claude-opus-5-5, medium effort:
merged base; base's new quest/m0/ci/mbx-b2.md linked to quest/m0/ci/read-only-secrets.md, which this PR deletes as finished; dropped that dangling link; ran nix develop -c just ci base and just check base, all modules pass(head a9ae18d)Rewritten by
quest reviewafter each round.Nothing the diff changes is shipped or read by a consumer or peer: it deletes the quest plan `quest/m0/ci/read-only-secrets.md` and edits two rows of the `infra/README.md` environment table, which is documentation that describes GitHub Environment policies without enforcing them, so a wrong table row could mislead an agent or maintainer about what the environments allow but could not by itself leak or publish anything, and a revert restores both files fully.713ce2c9-041c-41c1-b116-9db7fb69bafa