Skip to content

fix(deps): remove the Python ignore rule that never worked - #54

Merged
garymike merged 1 commit into
mainfrom
fix/dependabot-stale-python-guard
Jul 31, 2026
Merged

garymike merged 1 commit into
mainfrom
fix/dependabot-stale-python-guard

Conversation

@garymike

Copy link
Copy Markdown
Owner

The bug

#39 (2026-07-19) added a Dependabot ignore holding Python at 3.12, because yara-python (pulled in by SkillSpector) had no 3.13/3.14 wheel and the slim image ships no C toolchain to build it from source.

#49 (2026-07-24) bumped 3.12 to 3.14 anyway, five days later, straight through the guard.

Two failures, in opposite directions

It did not block what it was written for. These images pin by digest (python:3.14-slim-bookworm@sha256:…), so Dependabot raises digest updates that a version-update:semver-minor|major ignore never matches.

Its premise had expired. A wheel landed, and the toolbox has been building on 3.14 since 2026-07-24 — including the skill-audit image, with the SkillSpector job passing. So the rule sat there blocking legitimate future bumps for a reason that no longer held, while failing at the job it was added for.

Why remove rather than repair

The protection already exists and is stronger. Build toolbox and scan this repo builds every image from source on every Dependabot PR and Trivy-scans the result, so a runtime bump that breaks the build fails the PR instead of reaching main. That gates on the actual failure rather than on a guess encoded as a version predicate.

Repairing the ignore would mean maintaining a hand-written version constraint that duplicates what CI already proves empirically, and that has now been wrong in both directions once.

Also fixed

A comment above the /toolbox/base entry claimed domain images have no upstream OS-image dependency. toolbox/gha pins python directly in its downloader stage, which is why it has its own config entry — added later, without correcting the comment above it.

Verification

  • YAML parses; three ecosystems intact (github-actions:/, docker:/toolbox/base, docker:/toolbox/gha), zero ignore rules remaining
  • Both Dockerfiles confirmed on python:3.14-slim-bookworm@sha256:86f975a… with builds green
  • Every added line em-dash and en-dash free
  • Commit signed and authored MG <[email protected]>

Merged alongside this: the three open Dependabot PRs (#51, #52, #53), all green.

#39 added an ignore holding Python at 3.12, because yara-python (via
SkillSpector) had no 3.13/3.14 wheel and the slim image ships no C
toolchain to build it from source. Five days later #49 bumped 3.12 to
3.14 straight through it.

Two things were wrong with the rule, in opposite directions. It did not
block what it was written for: these images pin by digest, so Dependabot
raises digest updates that a `version-update:semver-minor|major` ignore
never matches. And the premise expired anyway, since a wheel had landed
and the toolbox has been building on 3.14 since 2026-07-24, including the
skill-audit image and a passing SkillSpector job. So it sat there
blocking future minor and major bumps for a reason that no longer held,
while failing at the job it was added for.

Removing it rather than repairing it, because the protection already
exists and is stronger: `Build toolbox and scan this repo` builds every
image from source on every Dependabot PR and Trivy-scans the result, so a
runtime bump that breaks the build fails the PR instead of reaching main.
That is a real gate on the actual failure, not a guess encoded as a
version predicate.

Also corrects a comment claiming domain images have no upstream OS-image
dependency. toolbox/gha pins python directly in its downloader stage,
which is why it has its own config entry, added later without the comment
above being updated.
@garymike
garymike merged commit 99bce7c into main Jul 31, 2026
9 checks passed
@garymike
garymike deleted the fix/dependabot-stale-python-guard branch July 31, 2026 22:21
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