Skip to content

feat(security): let a caller pass cargo-deny arguments - #58

Merged
forkwright merged 1 commit into
mainfrom
feat/cargo-deny-arguments
Aug 26, 2026
Merged

feat(security): let a caller pass cargo-deny arguments#58
forkwright merged 1 commit into
mainfrom
feat/cargo-deny-arguments

Conversation

@forkwright

Copy link
Copy Markdown
Owner

Finding

Fourteen repos carry a private .github/workflows/security.yml instead of calling this reusable —
the largest single drift class in the fleet (kanon#3688). Most of it is stale copy-drift, but one
difference could not be expressed here at all: four repos pass --all-features to cargo-deny,
and this workflow passed only command:.

Evidence

Read from the arguments: key in all fourteen local files:

passes --all-features to cargo-denydoes not
akroasis, epitelesis, logismos, politeiaaletheia, epistole, hamma, harmonia, heurema, koinon, pinax, sphragis, theatron, thumos

This reusable's cargo-deny step today:

- uses: EmbarkStudios/cargo-deny-action@3c6349835b2b7b196a839186cb8b78e02f7b5f25 # v2.1.1with:
command: check advisories licenses bans sourcescredentials: ...use-git-cli: ...

No arguments:.

Why this matters

Adopting the reusable would have silently narrowed those four repos' dependency scan to
default-features-only resolution. A security check that quietly covers less than it used to is
the worst direction for one to move in
, and nothing would have reported it — cargo-deny would
pass, faster, having examined fewer dependencies.

Absent this input the only choices were to keep four private copies forever, or to regress them
without noticing. That is the under-parameterisation making a whole drift class unresolvable, not
the copies themselves.

Desired correction

One optional input, defaulting to empty — which is cargo-deny's own behaviour and exactly what
every current caller gets today. No existing consumer changes.

Done when: akroasis, epitelesis, logismos and politeia can call this reusable without losing
all-features resolution.

A correction worth recording

An analysis pass reported that 13 of 14 repos passed --all-features, which would have made
this urgent and fleet-wide. Re-deriving it from the arguments: key in all fourteen files gives
4. The other nine mention the flag elsewhere in the file, against a different tool.

The gap is real, and it is narrower than reported. The fix is the same either way; the priority is
not.

CI note

GitHub Actions is in a major outage (incident opened 2026-08-26T15:11:58Z). Checks here may queue,
startup_failure, or never be created. Nothing red before that closes is evidence about this
change, and I am not merging it on an empty rollup.

Fourteen repos carry a private security.yml instead of calling this reusable --
the largest single drift class in the fleet. Most of it is stale copy-drift, but
one difference could not be expressed here at all: four repos (akroasis,
epitelesis, logismos, politeia) pass `--all-features` to cargo-deny, and this
workflow passed only `command:`.
Adopting the reusable would therefore have silently narrowed those four repos'
dependency scan to default-features-only resolution. A security check that
quietly covers less than it used to is the worst direction for one to move in,
and nothing would have reported it. Absent this input the only choices were to
keep four private copies or to regress them without noticing.
Default is empty, which is cargo-deny's own behaviour and exactly what every
current caller gets today, so no existing consumer changes.
Verified rather than taken on report: an analysis pass claimed 13 of 14 repos
passed --all-features. Reading the `arguments:` key in all fourteen files shows
4. The other nine mention the flag elsewhere in the file, against a different
tool. The gap is real and narrower than reported.
@forkwright
forkwright merged commit f883456 into mainAug 26, 2026
2 checks passed
@forkwright
forkwright deleted the feat/cargo-deny-arguments branch August 26, 2026 16:13
Sign up for freeto 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

@forkwright