Repository navigation
Bring the repo's GitHub setup up to a professional standard - #228
Merged
Merged
Conversation
CI ran on Ubuntu only, its required check never ran on Markdown-only pull requests, and the audit, MSRV and docs results weren't required to merge. The required "Build and test" check is now a gate job that passes only when every CI job passes. The jobs: fmt and clippy, tests on Linux, Windows and macOS, cargo check on rust-version, rustdoc with warnings denied, cargo audit and cargo deny, dependency review, typos, actionlint and zizmor. Every cargo command runs with --locked. New workflows run CodeQL, OpenSSF Scorecard, a Docker image build with a smoke test, a link check and a path labeler. Releases build spacectl for four targets after the whole CI suite passes, and publish SHA256SUMS and build provenance attestations. Every action is pinned to a commit, and jobs get a read-only token unless they need more. The Docker image runs as a non-root user that can write /data, from base images pinned by digest. Dependabot covers those too, with a cooldown on new versions. Adds .gitattributes, .editorconfig, .dockerignore, SUPPORT.md and CITATION.cff. Stale references to Discussions, Slack and release branches are gone. crates/protocol-s3/space.kyber.key, a key pair a pre-reset build left behind, is no longer tracked.
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
The link check found CHANGELOG entries pointing at pre-reset docs, which now point at the archive branch, and capsule.md pointing at a gc.rs that no longer exists. The rust-version check covers libraries and binaries only, since serial_test needs Rust 1.93.1; the docs now say the tests need a newer stable. The labeler skips Dependabot's pull requests, which get a read-only token. The release build drops an unused rustup fallback, and a dry run gives way to a newer push.
gh attestation verify --bundle can then check a download offline, and Scorecard's Signed-Releases check, which only looks at release assets, counts it.
# Conflicts: # CHANGELOG.md
The labeler gave almost every pull request the documentation label, since nearly all of them edit CHANGELOG.md, and release notes would have filed fixes and features under Documentation. The kind labels now go only on pull requests that change nothing else. The Docker builder pinned rust:1.89-bookworm, a tag upstream stopped updating in 2025, so Dependabot could never move its digest. It now builds on rust:1-bookworm, pinned by digest and kept current by Dependabot. The msrv job already checks rust-version, so the Dockerfile check against it is gone. The Dockerfile header says to run with --init, since spacectl doesn't handle SIGTERM as PID 1, and how to bind-mount a host directory for uid 10001. The Windows release binary links the C runtime statically, so it runs without the VC++ redistributable. Comments no longer claim that security updates skip the cooldown while they're switched off, or that the audit tools drift without a commit.
7 tasks done
saworbit
marked this pull request as ready for review
November 15, 2026 01:16
saworbit
added a commit
that referenced
this pull request
Nov 15, 2026
The Dockerfile header from #228 told people to run the image with --init, since spacectl ignored signals as PID 1. It handles them now. The Docker workflow checks it: docker stop must end serve-s3 in under 8 s with exit status 0.
This was referenced Nov 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
The repo's CI ran on Ubuntu only. Its one required check,
Build and test, never reported on Markdown-only pull requests, so those could never merge, and the audit, MSRV and docs jobs weren't required at all. Several files pointed at things that don't exist (Discussions, a Slack channel, release branches,docs/security/), and a Kyber key pair from a pre-reset build was still tracked.CI (
ci.yml)Build and testis now a gate job that passes only when every other job passes, so branch protection needs no change. A new job is required as soon as it's added to the gate'sneeds.storage/uring), tests on Linux, Windows and macOS,cargo checkof the libraries and binaries onrust-version(read fromCargo.toml; the dev-dependencies need a newer Rust), rustdoc with-D warnings,cargo auditandcargo deny, dependency review on pull requests,typos,actionlintandzizmor.--locked. There are no paths filters. A weekly run catches new advisories and new lints.New workflows (not required to merge)
codeql.yml: Rust and Actions analysis, with results in code scanning.scorecard.yml: OpenSSF Scorecard, which publishes the README badge.docker.yml: hadolint, an image build, and a smoke test that writes and reads a capsule on a fresh volume as the non-root user.links.yml: lychee over the Markdown, weekly and on Markdown changes.labeler.yml: path labels, onpull_requestonly, neverpull_request_target, and skipping Dependabot. Area labels go on any PR touching the area. The kind labels (documentation,dependencies,build,ci) go only on PRs that change nothing else, since release notes sort by them.Releases (
release.yml)A
vX.Y.Ztag is checked against the workspace version, and the whole CI suite runs on the tagged commit. Thenspacectlis built with no cache for x86_64 and aarch64 Linux, Windows (static CRT) and Apple Silicon. The release gets the archives,SHA256SUMS, a build provenance attestation per archive, and the attestation bundle as an asset, for offlinegh attestation verify --bundleand Scorecard's Signed-Releases check. A pull request that changes the workflow runs the builds without publishing, so this one exercises it.Supply chain
gh, anddtolnay/rust-toolchainwith the runners' ownrustup.deps(deps):.Repo files
.gitattributes(LF everywhere),.editorconfig,.dockerignore,SUPPORT.md,CITATION.cff,.github/release.yml(release note sections).maingets fixes.rust:1-bookworm, pinned by digest. The oldrust:1.89-bookwormtag is frozen upstream, so its digest could never update. The image runs as a non-root user that can write/data, drops the unneeded apt layer, and builds with--locked. Its header documents--init(spacectldoesn't handle SIGTERM as PID 1) and bind-mounting for uid 10001.deny.toml(pre-reset exceptions) and_typos.toml. The stale references in CONTRIBUTING.md and GOVERNANCE.md are fixed.archive/pre-reset-2026-10, anddocs/capsule.mdno longer points at a deletedgc.rs.crates/protocol-s3/space.kyber.keyis no longer tracked, and*.key,*.pemand.envare ignored.See
docs/CI_CD_STRATEGY.mdfor the full picture.Needs a repository setting
Dependency review fails until the dependency graph is enabled (Settings → Advanced Security). It is part of the required
Build and testgate, so this PR, and every PR after it, is blocked until then.Type
Checklist
actionlint,zizmor --persona=pedantic(one Scorecard finding left, since its publish step needs that exact workflow shape),typoscargo deny --locked check,cargo audit --deny warningsRUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --lockedspacectl