Skip to content

ci: a fork PR's Rust gate builds without the R2 cache, like Dependabot's (#632) - #1359

Merged
athvin merged 1 commit into
mainfrom
ci/632-fork-prs
Nov 28, 2026
Merged

athvin merged 1 commit into
mainfrom
ci/632-fork-prs

Conversation

@athvin

@athvin athvin commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

Closes #632

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

rust.yml: a fork PR takes Dependabot's path, which turns on the GHA cache and leaves SCCACHE_BUCKET and the R2 credentials empty. That change covers 16 expressions. CONTRIBUTING.md gains a "Pull requests from forks" section. The disclosure decision (item 1) is recorded on the issue: accept as published, with the reasoning.

#632: a fork PR gets no secrets, so its Rust build would fail on empty R2 credentials rather than degrade — a red gate that reads as broken. DoD 2's first option.

Proof

  • actionlint clean; workflow-shell-check ok.
  • The condition mirrors Dependabot's, which is already proven green on Dependabot PRs: the GHA cache is on, the bucket is '', and the credentials are '' (sccache ignores empty vars).
  • This PR is not from a fork, so its own run exercises the unchanged non-fork path, and it must stay green. A fork PR is the only thing that exercises the new path.

Risk & rollback

Changes behaviour only for fork PRs, which a maintainer must approve before they run. git revert <merge-sha>.

Post-merge ledger

Closed by: agent · session Claude Code:24d16c2e-fec6-49d8-9797-060338df4848 on brians-MacBook-Pro · 2026-11-28T22:39:05Z

  • main is green with this change on it — the merge SHA, and the run
    that proves it. A later head SHA with this commit as an ancestor counts;
    a cancelled run with zero jobs does not: — 71fe267; its own rust run 46195911599 was cancelled by the next merge's concurrency group, and rust 46196128536 on 698dd08 (which contains 71fe267) is success; frontend 46195911593 success
  • images built, or correctly never ran because nothing that goes into
    an image changed: — n/a — workflow and docs only; the images run that followed built from the same inputs
  • deploy converged — proved by a line the running process emitted, not
    by the image digest and not by the workflow conclusion: — run 46196104929 success; this change alters no deployed artifact
  • the push-only surface no pull request can pre-test (deploy, drift,
    kind's nightly leg) is green, or knowingly red for a reason that is not
    this change: — infra, devcontainer success on 71fe267
  • the board card reached Done through the automation rather than by
    hand, and the issue closed: — Public-repo posture: deliberate disclosure review + fork-PR CI behaviour #632 CLOSED by ci: a fork PR's Rust gate builds without the R2 cache, like Dependabot's (#632) #1359 via automation
  • follow-ups are open for everything deferred here — numbers: — none
  • what was learned is written down where the next session will find it
    (a skill, a reference, memory) — or nothing new was learned: — a fork PR now takes the Dependabot path through rust.yml (no R2 cache, no secrets); CONTRIBUTING.md says so

Specific to this change

  • the first real fork PR's rust run goes green — n/a — there is no outside contributor to open one; the path is Dependabot's, proven
Context — plan, discoveries, measurements, files

Plan

Discoveries

Measurements

Files

🤖 Generated with Claude Code

…t's (#632)

A fork pull request receives no Actions secrets, so the R2 read
credentials resolved empty while SCCACHE_BUCKET stayed set — sccache's S3
backend then failed on missing credentials instead of degrading. Fork PRs
now take Dependabot's path: the branch-scoped GHA cache on, the bucket and
credentials empty. CONTRIBUTING.md says outside PRs are welcome and what
their CI does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@athvin
athvin merged commit 71fe267 into main Nov 28, 2026
44 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 28, 2026 22:17 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
marketing-preview — 5cf37e69 Deployed Nov 28, 2026 by athvin via remove closed PR previews #122
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.

Public-repo posture: deliberate disclosure review + fork-PR CI behaviour

2 participants