Skip to content

ci(secruity): hardening + lock files + dependabot cooldown - #140

Merged
rklaehn merged 4 commits into
mainfrom
arqu/lock_deps
Sep 25, 2026
Merged

rklaehn merged 4 commits into
mainfrom
arqu/lock_deps

Conversation

@Arqu

@Arqu Arqu commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

Uses --locked to ensure we only use deps from the lock file
Adds cooldown period to dependabot
pins actions versions
introduces zizimor and pinact

The repo had none, so nothing was ever proposed for update. Actions
need this in place before pinning, or the pins freeze permanently.
Cooldown lets a compromised publish be noticed before we take it.
Floating tags (@v2, @stable, @master) resolve at run time, so a tag
move is a silent code change. Pin every action to a SHA with a version
comment; refs that carry no semver tag get an inline toolchain input
instead. .pinact.yaml keeps the SHAs and comments in sync.
Every workflow now starts at contents: read; the two release jobs grant
write explicitly. actions/checkout also leaves the job token in
.git/config by default, where any build script can read it.

--locked on the release build and the one cargo check that lacked it,
so a job can never silently resolve a dependency the lockfile does not
name.

actions/create-release and actions/upload-release-asset are both
archived upstream; gh ships on the runner and replaces the pair, which
also retires the upload_url handoff between the two jobs. Release
version and archive names come from env rather than being interpolated
into the shell.
zizmor audits the workflows themselves; pinact fails if a pinned SHA
drifts from its version comment or is younger than the cooldown. No
zizmor config: the tree is clean with no accepted exceptions.
@n0bot n0bot Bot added this to iroh Sep 25, 2026
@github-project-automation github-project-automation Bot moved this to 🚑 Needs Triage in iroh Sep 25, 2026
@rklaehn
rklaehn merged commit 34075f1 into main Sep 25, 2026
16 checks passed
@github-project-automation github-project-automation Bot moved this from 🚑 Needs Triage to ✅ Done in iroh Sep 25, 2026
@rklaehn
rklaehn deleted the arqu/lock_deps branch September 25, 2026 12:04
@Arqu Arqu mentioned this pull request Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants