Repository navigation
ci(rehearsal): make the swarm server-binary build read-only and no-publish - #1868
EffortlessSteven wants to merge 3 commits into
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
WalkthroughThe release workflow now supports manual rehearsal or publication, uses scoped permissions and ref-based concurrency, retains build artifacts for seven days, resolves versions consistently, and documents the updated release paths. ChangesServer release controls
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant GitHubActions
participant BuildJob
participant ManifestJob
participant GitHubRelease
GitHubActions->>BuildJob: Resolve version and build server archives
BuildJob->>GitHubActions: Upload target artifacts
GitHubActions->>ManifestJob: Assemble manifest and release assets
ManifestJob->>GitHubActions: Upload assembled assets
GitHubActions->>GitHubRelease: Publish when push or publish=true
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.github/workflows/release-server-binaries.yml:
- Line 65: Update the release commands using the version expression in the
workflow steps around cargo xtask release-server-archive so the resolved version
is assigned through the step environment and referenced via the shell
environment variable, rather than interpolated inline. Apply this consistently
to all three sites, including the commands near lines 65, 90, and 120, while
preserving the existing fallback from inputs.version to github.ref_name.
- Line 107: Update the publish job’s actions/checkout@v6 step to disable
persisted Git credentials by setting persist-credentials to false, while leaving
the existing checkout behavior unchanged.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: b072867a-9945-4e11-bcd9-21c55e4a68ca
📒 Files selected for processing (2)
.github/workflows/release-server-binaries.ymldocs/RELEASE_BINARIES.md
🔗 Linked repositories identified
CodeRabbit considers these linked repositories for cross-repo context during reviews:
EffortlessMetrics/ripr(auto-detected)EffortlessMetrics/perl-lsp(auto-detected)EffortlessMetrics/unsafe-review(auto-detected)EffortlessMetrics/ub-review(auto-detected)
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Issue ownership updateThis PR is now owned by #1874: safe no-publish workflow structure and least-privilege publication separation. Dependent proof remains:
|
|
Closing as wrong-scope rather than merging: this draft's own body declares the head unmergeable under #24 — it keeps the |
Status
Draft — authority correction required before merge.
#24 makes
ripr-swarmthe development authority andEffortlessMetrics/riprthe public release/distribution authority. It explicitly forbids GitHub Release, signing, publish workflows, and release secrets in swarm.The current branch head still contains a
v*trigger and a write-capable publication job targeting${{ github.repository }}. That is not mergeable under #24 even though the branch also adds a useful no-publish path.Intended scope
This PR is now owned by #1874 and #1882. Revise the workflow so swarm contains only a read-only artifact rehearsal:
workflow_dispatchor other non-publication trigger only;SHA256SUMS;push.tags: v*;contents: write,release-upload-assets, signing/attestation, and every release/publish secret path;Proof required on the revised exact head
cargo xtask check-workflowscargo xtask check-doc-indexcargo xtask check-process-policycargo xtask check-network-policyThe operational run/receipt follows in #1875. Source-repo tag trigger and provenance are coordinated by #1876/#1877.
Claim boundary
After revision and merge, this PR may establish only a swarm-owned no-publish build/assembly rehearsal. It must not claim or contain public release authority.
Refs #24 #1703 #1726 #1874 #1875 #1882