Skip to content

CI hardening: CI tools image, pinned actions and toolchains, lint, Renovate - #6

Merged
Kinflou merged 1 commit into
mainfrom
ci-hardening
Nov 12, 2026
Merged

Kinflou merged 1 commit into
mainfrom
ci-hardening

Conversation

@Kinflou

@Kinflou Kinflou commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Phase 4 of the org CI overhaul for this repo. Only .github/, renovate.json and lint.yml change, so nothing a downstream repo vendors is touched.

What changed

  • specs job runs in the org's ci-tools image (by digest), which has cue v0.17.1 and jq, in place of downloading cue from a release (with curl and retries) on the runner. A new step fails if the image's cue is not the version cue.mod/module.cue declares, so the two cannot drift apart unnoticed.
  • rust crate job: exact toolchains (1.99.1, and 1.82.0 for the minimum-Rust check) from the SHA-pinned dtolnay/rust-toolchain, in place of rustup toolchain install stable. It stays on a VM because the image has neither clippy nor the wasm target nor the old Rust.
  • Hardening: pinned ubuntu-24.04, top-level permissions: contents: read (no job needs more), persist-credentials: false, concurrency keyed on workflow and ref (cancels on PRs only), timeout-minutes on both jobs, every action SHA-pinned with a version comment, harden-runner (audit) on the VM job (it does not work in container jobs), defaults: run: shell: bash.
  • Added lint.yml (the org's reusable lint: actionlint and renovate.json validation) and renovate.json extending the org preset.

What stayed as it was, and why

  • What the checks run: specs/check.sh --check, the VERSION check, and the crate's tests, clippy (-D warnings), MSRV check and wasm build are unchanged.
  • No rust-toolchain.toml: the crate lives under files other repos vendor, and this PR is kept to .github/, renovate.json and lint.yml. The toolchain versions are in the workflow instead (and rust-version in Cargo.toml is untouched).
  • Renovate: the org preset already covers GitHub Actions and the image digest; the repo has no npm, pip or crates.io dependencies, so there is nothing to enable. The Rust and cue versions in the workflow are not bumped by Renovate.

Checked in this PR

All checks are green on the PR: specs (in the image), rust crate, both lint jobs.

Only verifiable after merge

Nothing: the push-to-main run is the same workflow as the PR run.

@Kinflou
Kinflou marked this pull request as ready for review November 12, 2026 01:00
@Kinflou
Kinflou merged commit 2511a8f into main Nov 12, 2026
7 checks passed
@Kinflou
Kinflou deleted the ci-hardening branch November 12, 2026 01:00
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