Skip to content

chore(toolbox): bump the eight drifted tool pins - #64

Merged
garymike merged 2 commits into
mainfrom
chore/bump-drifted-tools
Sep 8, 2026
Merged

garymike merged 2 commits into
mainfrom
chore/bump-drifted-tools

Conversation

@garymike

@garymike garymike commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Clears everything tool-drift.yml flagged on its first run (#63).

Tool From To
betterleaks 1.6.1 1.8.1
trufflehog 3.95.8 3.97.4
osv-scanner 2.4.0 2.5.1
snyk-agent-scan 0.5.12 0.6.2
zizmor 1.26.1 1.30.0
semgrep (sast + skill-audit) 1.168.0 1.176.1
checkov 3.3.7 3.3.16

tools.lock moved in step with every Dockerfile ARG.

One real regression, caught by building

snyk-agent-scan 0.6.x dropped --version in favour of argparse subcommands (scan, inspect, help, evo, guard), so the mcp-review self-test printed an argparse usage dump where a version should be. It now reads the installed version from pip metadata. Verified: the image reports snyk-agent-scan 0.6.2.

The VEX needed widening, and that is the interesting part

The exception from #62 was scoped to x/crypto 0.52.0 and 0.53.0. osv-scanner 2.5.1 moves to 0.54.0 — still below the 0.55.0 fix, but a version the exception did not name, so this bump would have failed the CRITICAL gate. Added 0.54.0.

That is the version-scoping working as intended rather than a blanket suppression. syft remains absent from the document and still scans clean on its own merits, because 1.51.1 genuinely fixes the issue.

Confirmed by scanning the built image: betterleaks and osv-scanner each report one finding without the VEX and none with it; syft reports none either way; trufflehog is not flagged at all, despite its go.mod listing 0.53.0.

skillspector deliberately left alone

Still pinned at c2d09df (v2.3.11), and its drift is now advisory rather than failing.

It publishes no releases, so it is pinned by commit and moves on every upstream push. Failing on that would keep this gate permanently red no matter what anyone did — precisely the cry-wolf signal the gate exists to avoid. The script's own comment already said this while the code disagreed; the code now matches.

Bumping it is also not a routine version bump: upstream is now v2.5.0, whose exit-code semantics differ from the v2.3.11 behaviour gate-proof.sh asserts on. That belongs in the separate work resolving the SkillSpector narrative, not folded in here.

Verification

  • All six images built locally from source and run; each self-reports its expected new version
  • check-tool-updates.sh --fail-on-drift now exits 0, with all ten version-pinned tools current
  • Scanned the built base with and without the VEX to confirm coverage is exactly right, not over-broad
  • Every added line em-dash and en-dash free; commit signed as MG <[email protected]>

Clears everything tool-drift.yml flagged on its first run. betterleaks
1.6.1 to 1.8.1, trufflehog 3.95.8 to 3.97.4, osv-scanner 2.4.0 to 2.5.1,
snyk-agent-scan 0.5.12 to 0.6.2, zizmor 1.26.1 to 1.30.0, semgrep 1.168.0
to 1.176.1 in both images that ship it, checkov 3.3.7 to 3.3.16, with
tools.lock moved in step.

Every image was built and run locally, which caught one real regression:
snyk-agent-scan 0.6.x dropped --version in favour of argparse subcommands,
so the mcp-review self-test printed an argparse usage dump instead of a
version. It now reads the installed version from pip metadata.

The VEX needed widening, and this is the interesting part. It was scoped
to x/crypto 0.52.0 and 0.53.0. osv-scanner 2.5.1 moves to 0.54.0, still
below the 0.55.0 fix, so the bump would have failed the CRITICAL gate on
a version the exception did not name. Adding 0.54.0 keeps the exception
version-scoped rather than blanket, which is the property worth having:
syft is still absent from it and still scans clean on its own merits,
because 1.51.1 genuinely fixes the issue. Confirmed by scanning the built
image: betterleaks and osv-scanner each report one finding without the
VEX and none with it, syft reports none either way, and trufflehog is not
flagged at all despite its go.mod listing 0.53.0.

skillspector is left pinned at c2d09df (v2.3.11) and its drift is now
advisory rather than failing. It publishes no releases, so it is pinned by
commit and moves on every upstream push; failing on that would keep this
gate permanently red no matter what anyone did, which is the cry-wolf
signal the gate exists to avoid. Its own script comment already said as
much while the code disagreed. Bumping it is also not a routine version
bump: upstream is now v2.5.0, whose exit-code semantics differ from the
v2.3.11 behaviour that gate-proof.sh asserts on, so it belongs in the
separate piece of work that resolves that, not folded in here.
…ntax

The tool bumps failed the blocking gha-security step, and not because of
anything they changed in the toolbox. zizmor 1.30.0 ships a new
self-repository audit that prefers GitHub's newer `uses: $/...` over
workspace-relative `uses: ./...`, and flagged all six reusable-workflow
calls in self-scan.yml.

The advice is sound and the syntax is real: GitHub announced it in July
2026. Adopting it made zizmor clean. It also made actionlint 1.7.12 fail
hard, because actionlint does not recognise `$/` and rejects it as
"not following the format owner/repo/path/to/workflow.yml@ref nor
./path/to/workflow.yml". Both tools run blocking in the same step, so
the two cannot be satisfied at once, and 1.7.12 is the current actionlint
release (2026-03-30), so waiting is not a short-term option either.

Keeping `./` and ignoring the audit for that one file. It is the option
that stays valid for actionlint and for every consumer, and the finding is
low severity and purely stylistic; `$/` would trade a working call for a
tidier one. Recorded in .github/zizmor.yml with the reasoning and a
revisit trigger rather than left as a bare rule name, since the next
person to read it will otherwise wonder why the newer syntax was refused.

The weekly tool-drift gate is what will surface the actionlint release
that makes this removable.
@garymike
garymike merged commit a00b577 into main Sep 8, 2026
9 checks passed
@garymike
garymike deleted the chore/bump-drifted-tools branch September 8, 2026 00:45
garymike added a commit that referenced this pull request Sep 9, 2026
Three defects in one step, all surfaced by OpenShows going red on
2026-09-08 without a line of its own changing.

1. The image was pulled by :latest. Callers pin this workflow by SHA, but
   the scanner it runs moved underneath them: #64 rebuilt the toolbox with
   betterleaks 1.6.1 -> 1.8.1, whose new generic-password and
   generic-credential-uri rules turned a green repo red overnight. Pinning
   the reusable workflow while the image floats gives the appearance of a
   pinned supply chain without the property. Now pinned by digest; bump it
   deliberately alongside toolbox/tools.lock.

2. The scan root was /src, an absolute path. betterleaks derives finding
   fingerprints from the root as given, so every fingerprint came out as
   /src/path/file.yml:rule:12 -- which can never match a .gitleaksignore,
   since that file is written relative to the repo root. The practical
   effect is that no caller could suppress a false positive at all: the
   ignore file was read and silently matched nothing. The working
   directory is already /src, so scanning "." fixes it.

3. On a finding the job printed a bare count and exited 1. No rule, no
   path, no line -- a blocking gate with nothing to act on. --verbose adds
   rule, path, line and a redacted excerpt; --redact still keeps values out
   of the log.
garymike added a commit that referenced this pull request Sep 30, 2026
sast, iac-security, gha-security and skill-audit pulled their domain image by :latest, so a toolbox rebuild silently changed what every caller scanned with -- the exact failure mode the digest pin in security-scan.yml was added to prevent (betterleaks 1.6.1 -> 1.8.1 in #64 turned green repos red overnight).

Each digest here is what :latest resolved to at the time of writing, so this is a no-op at merge time; it only removes the silent-change behaviour.

These now need a deliberate bump alongside toolbox/tools.lock, same as the base image pin.
garymike added a commit that referenced this pull request Sep 30, 2026
sast, iac-security, gha-security and skill-audit pulled their domain image by :latest, so a toolbox rebuild silently changed what every caller scanned with -- the failure mode the digest pin in security-scan.yml exists to prevent (betterleaks 1.6.1 -> 1.8.1 in #64 turned green repos red overnight). All four now pin by digest, with the same rationale comment.

security-scan.yml's own pin is bumped in the same commit. It still referenced 5614f8b9, the base image built before the #67 and #70 tool bumps, so it had drifted from tools.lock -- exactly what its comment says not to let happen.

Every digest here comes from build 36661628989, the rebuild after #75, which is the first run in which all six images published: the Trivy publish gate had been rejecting sast and skill-audit over CVE-2026-102268 until PyJWT was fixed.

These five now move deliberately, alongside toolbox/tools.lock. dogfood-scan is untouched -- it builds from source at :ci tags and never pulls from the registry.
garymike added a commit that referenced this pull request Oct 1, 2026
* chore(workflows): pin every toolbox image by digest

sast, iac-security, gha-security and skill-audit pulled their domain image by :latest, so a toolbox rebuild silently changed what every caller scanned with -- the failure mode the digest pin in security-scan.yml exists to prevent (betterleaks 1.6.1 -> 1.8.1 in #64 turned green repos red overnight). All four now pin by digest, with the same rationale comment.

security-scan.yml's own pin is bumped in the same commit. It still referenced 5614f8b9, the base image built before the #67 and #70 tool bumps, so it had drifted from tools.lock -- exactly what its comment says not to let happen.

Every digest here comes from build 36661628989, the rebuild after #75, which is the first run in which all six images published: the Trivy publish gate had been rejecting sast and skill-audit over CVE-2026-102268 until PyJWT was fixed.

These five now move deliberately, alongside toolbox/tools.lock. dogfood-scan is untouched -- it builds from source at :ci tags and never pulls from the registry.

* docs(toolbox-scan): stop the input description contradicting its default

The image input advised pinning by digest while defaulting to :latest.

Keeping the mutable default is deliberate, and is the one place this repo should not follow the digest rule: this is a public action, and pinning its default would freeze external callers on a digest they never chose and silently stop their scanner updates. The reusable workflows pin because their images are bumped here, deliberately, alongside tools.lock; a third party has no such cadence.

So the description now says what the default actually does and offers pinning as the opt-in, rather than advising one thing and doing another.
garymike added a commit that referenced this pull request Oct 19, 2026
)

#73 made these digest pins deliberate on purpose: a rebuild must not
silently change what every caller scans with, after betterleaks
1.6.1 -> 1.8.1 in #64 turned green repos red overnight. Its commit message
says they "move deliberately, alongside toolbox/tools.lock".

They did not move. #80 bumped eight tools and #81 bumped SkillSpector
v2.3.11 -> v2.13.0, both rebuilt and published, and neither touched these
five lines. My #81 is half of that omission.

Measured, not inferred:

  skill-audit.yml  pinned 6f5f4c48 -> SkillSpector v2.3.11 (tools.lock: 2.13.0)
  security-scan.yml pinned 5bfad328 -> betterleaks 1.8.1   (tools.lock: 1.9.0)

So every caller of these reusable workflows was scanning with the Oct-1
toolchain while tools.lock claimed otherwise.

All five now point at the digests the b0d54d4 build published, each one
confirmed present in that build's output (run 39298358613) rather than read
off a local pull: podman inspect reports the platform manifest digest, which
differs from the registry index digest for the images whose latest index
carries attestations, and build-push-action's own output digest is the
convention #73 used.

Ordering note for the sibling repos: security-agents#22 and skills#32 refresh
their reusable-workflow pin to 0fd7cac. Those must land AFTER this, or they
move both repos off :latest and onto the stale digests this fixes.

I tried adding a drift check for this and pulled it back out. Comparing the
pin against the registry's :latest index digest false-reds on exactly the two
attestation-bearing images, and a gate that cries wolf is worse than the
manual step it replaces. The right home is build-toolbox.yml, which already
holds both the digest it just built and the pin, but that is the publish path
and #73 deliberately kept it clean. Left as a decision, not a half-gate.

Co-authored-by: Claude Opus 5 <[email protected]>
garymike added a commit that referenced this pull request Oct 21, 2026
…ublished (#88)

Fourth time today the five reusable-workflow digest pins went stale, so the
manual step gets a control.

#73 made those pins deliberate on purpose: a rebuild must not silently change
what every caller scans with, after betterleaks 1.6.1 -> 1.8.1 in #64 turned
green repos red overnight. The cost of "deliberate" is that nothing moves them
for you, and nothing reminded anyone either. #80 bumped eight tools and #81
bumped SkillSpector, both published, neither moved the pins, and callers kept
getting the previous toolchain while tools.lock said otherwise. #82 was the
cleanup. Every toolbox/** change since has put them behind again, including
#87 and #86.

Each build job now records the digest it published, and a new `pins` job
compares those against the pin in the matching reusable workflow.

Two design points that are the whole reason this works:

It is a SEPARATE job, after base and domain, so publishing is never blocked.
It cannot be blocked: the digest to pin does not exist until the publish has
happened, so failing the publish on a stale pin would be circular. The images
ship, and the run still goes red, so the follow-up is not optional. Same
contract as tool-drift.yml: red means a pin is behind, not that anything is
broken.

It reads steps.build.outputs.digest rather than the registry. Comparing
against the `latest` index digest false-reds on images whose index carries
attestations, which is exactly why I pulled the equivalent check back out of
check-tool-updates.sh in #82 rather than ship a flaky gate. The build already
holds both halves, so no lookup and no ambiguity.

mcp-review-toolbox is built here but no reusable workflow pins it, so it is
reported as unpinned rather than counted as a mismatch.

Verified by running the comparison standalone against three scenarios:
all pins matching exits 0; two behind exits 1 with both named in ::error::
and marked in the job summary; and no digest files at all exits 1 saying the
pins were NOT verified, rather than passing quietly, which is the failure mode
that let this go unnoticed in the first place. actionlint clean, zizmor clean.

Co-authored-by: Claude Opus 5 <[email protected]>
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