Skip to content

Keep pull-request CI read-only - #9605

Merged
moq-bot[bot] merged 4 commits into
mainfrom
quest/m0/ci/read-only-secrets
Nov 25, 2026
Merged

moq-bot[bot] merged 4 commits into
mainfrom
quest/m0/ci/read-only-secrets

Conversation

@kixelated

@kixelated kixelated commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Finishes quest/m0/ci/read-only-secrets.md: deletes it and syncs infra/README.md's Environment table with the live deployment policies (publish and cache-write listed 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, so bin/repo-settings in kixelated's dotfiles is untouched and no Maintainer: 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.

  • Plain job: non-empty only MBX_R2_ACCESS_KEY_ID, MBX_R2_SECRET_ACCESS_KEY (read-only) and DISCORD_WEBHOOK (org secret, left visible by the 2026-11-06 decision). Empty: every other name, including CACHIX_AUTH_TOKEN, the 12 publish secrets, APP_*, NIX_*, CORPUS_*, JSR_TOKEN, GCP_SERVICE_ACCOUNT_KEY.
  • One job per Environment (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 list shows only MBX_R2_* at repository scope.
  • Audit of .github/workflows/: every job using a write secret or a publisher's OIDC identity names an Environment (or gates the step to tags); workflow_run and pull_request_target jobs name bot or alert. A branch can always declare its own permissions, so its token stays harmless only because the rulesets protect main, release, and release tags; that is outside this quest.

Models

Size: S
Implementer: Claude Code, claude-sonnet-5-5, unknown (arm B)

Decisions

  • Added no recurring job or lint that re-checks the secret list: the quest asked for a one-time check, and a new repository secret needs a maintainer's settings change anyway. Recommend leaving it; say if you want a periodic check.

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 review after each round.

  • Head: dd7cd04
  • Base: origin/main at 9ad7001
  • Risk: low, 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.
  • Classified: low by Claude Code, claude-haiku-5-5, low effort, session 713ce2c9-041c-41c1-b116-9db7fb69bafa
  • Local review: none, since the head is low risk

kixelated and others added 2 commits November 25, 2026 04:38
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>
@kixelated
kixelated marked this pull request as ready for review November 25, 2026 12:41
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: afb9c101-644a-43ee-bf29-41048d784689
Commits

Reviewing files that changed from the base of the PR and between dd7cd04 and a9ae18d.

Files selected for processing: 3

  • infra/README.md
  • quest/m0/ci/mbx-b2.md
  • quest/m0/ci/read-only-secrets.md

No actionable comments were generated in the recent review.

Walkthrough

The 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: Minimal · previous review dd7cd

This PR only updates documentation and removes a completed quest document. It changes no runtime behavior, so merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "Keep pull-request CI read-only" matches the PR's main purpose: completing the read-only pull-request CI quest. The PR deletes the quest plan and syncs the infra/README.md Environment table,…
Description check Passed The description is directly related to the changeset. It explains that the quest file is deleted and that infra/README.md's Environment table is updated to match live deployment policies. It also give…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Keep pull-request CI read-only" matches the PR's main purpose: completing the read-only pull-request CI quest. The PR deletes the quest plan and syncs the infra/README.md Environment table, and its validation confirms that the read-only CI state holds. The title is specific and concise, and it does not describe the documentation-only scope in detail, which is acceptable.

Full details: Description check

Explanation

The description is directly related to the changeset. It explains that the quest file is deleted and that infra/README.md's Environment table is updated to match live deployment policies. It also gives validation steps and scope, such as docs-only changes with no workflow or API impact.

Finishing Touches

Simplify code

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c8e4e918-c65f-40be-abac-0ca4518e824b
Commits

Reviewing files that changed from the base of the PR and between 9ad7001 and dd7cd04.

Files selected for processing: 2

  • infra/README.md
  • quest/m0/ci/read-only-secrets.md
Files with no reviewable changes: 1

  • quest/m0/ci/read-only-secrets.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.

@kixelated
kixelated added this pull request to the merge queue Nov 25, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 25, 2026
@moq-bot

moq-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

quest land watch: the merge queue removed this pull request at dd7cd04 because its merge_group build failed (failed_checks).

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.

Queue / Queue (job) failure at step Check:

…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)

@moq-bot
moq-bot Bot enabled auto-merge November 25, 2026 16:36
@moq-bot

moq-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

claude, claude-opus-5-5, medium effort land fixer note:

The merge queue's check quest step failed with quest/m0/ci/mbx-b2.md:68: link does not resolve: /quest/m0/ci/read-only-secrets.md. The base had just added the mbx-b2 quest (#9514), and one of its recommendations was to update read-only-secrets.md's MBX_R2_* line. This PR finishes that quest and deletes the file. I merged the base into this branch and removed only that one link from mbx-b2's list of places to update. Once the quest file is gone, it has no line left to update. Finished quests elsewhere in the repo drop their links the same way. After the fix, just ci base and just check base pass in the dev shell.

(written by claude, claude-opus-5-5, medium effort)

@moq-bot

moq-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

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 (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.

(written by quest land watch)

@moq-bot
moq-bot Bot added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit 3dccb9c Nov 25, 2026
7 checks passed
@moq-bot
moq-bot Bot deleted the quest/m0/ci/read-only-secrets branch November 25, 2026 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant