Skip to content

Add Dependabot for the SHA-pinned actions and the Gradle plugins - #81

Merged
scttfrdmn merged 1 commit into
mainfrom
fix/80-dependabot
Aug 3, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
fix/80-dependabot

Conversation

@scttfrdmn

Copy link
Copy Markdown
Collaborator

Closes #80.

This repo was the odd one out in the sweep: CI was already fully SHA-pinned
(all 12 uses: refs). The gap was the other half of that control — nothing ever
bumped them.

Pinning without Dependabot is half a control

A pinned SHA never moves — including past a security fix — and unlike @v6
nothing updates it. The staleness here was already real:

ref pinned at @v6 had moved to
actions/checkout (×5) df4cb1c (2026-06-02) d23441a (2026-07-16)

Six weeks stale, and security.yml (gitleaks + Trivy + Semgrep) doesn't look at
action pins, so nothing in this repo would ever have said so.

The Gradle plugins had nothing watching them either

build.gradle has no dependencies { } block — compile/test deps come from the
nextflow-plugin toolchain — so the two plugin versions are the dependency
surface
:

plugin pinned Portal latest
io.nextflow.nextflow-plugin 1.0.0-beta.14 1.0.0-beta.15
org.gradle.toolchains.foojay-resolver-convention 1.0.0 1.0.0

Both resolve as Plugin Portal marker artifacts, which is what lets Dependabot's
gradle ecosystem see them. Flagged in the config: nextflow-plugin bumps need a
real look, not a rubber stamp — it resolves the Nextflow API and generates the
manifest, the recurring cause behind #3 / #7 / #9.

Group pattern is *, not actions/* — this repo also uses gradle/actions,
aquasecurity/trivy-action and softprops/action-gh-release, i.e. most of the
refs in use, including both Trivy pins.

The wiring check

SpawnCiHygieneTest — a Spock spec, because CI already runs this suite (#59), so
no new job and no new tool. Four specs:

  1. every ref is a 40-hex SHA with a # vX.Y.Z comment
  2. the Dependabot group patterns actually cover every action in use —
    extracted and glob-matched, not grepped for a literal "*"
  3. the gradle entry exists
  4. the plugin versions are still literals where Dependabot looks, and there's still
    no dependencies { } block — so if that surface moves, the gradle entry
    can't silently stop covering it

All anti-vacuous. The dependabot.yml reader is narrow rather than general (no
YAML library added to the build for one config file) and fails loudly instead of
mis-parsing.

⚠️ It also fixes a way this gate could fail open

Gradle's up-to-date check only considered Groovy sources. A commit touching only
.github/ or build.gradle skips :test against a warm cache — and CI restores
one via gradle/actions/setup-gradle.
So a PR that did nothing but revert a pin
was precisely the case where the check wouldn't run.

I found this by mutating the config and watching the suite report BUILD SUCCESSFUL six times over — my first mutation run was invalid and I nearly
shipped a gate that asserted nothing. .github/, build.gradle and
settings.gradle are now declared test inputs. Disclosing rather than quietly
fixing, because a gate that fails open is worse than no gate.

Verification

With JAVA_HOME=/opt/homebrew/opt/openjdk@17:

  • full ./gradlew test green
  • a warm re-run still reports 7 actionable tasks: 7 up-to-date — the new inputs
    add no churn
  • gate mutation-tested eight ways, all caught by assertion (not by breaking
    the build script), files byte-identical afterward:
mutation caught by
float trivy-action to @master pin spec
narrow groups to actions/* coverage spec
drop the gradle entry gradle spec
delete dependabot.yml both Dependabot specs
drop a # v2 comment pin spec
version: 1 both Dependabot specs
add a dependencies { } block surface spec
maven instead of gradle gradle spec

Not done here

The stale SHAs are left for Dependabot's first PR rather than hand-bumped, so
each bump arrives with its own changelog and review. build.gradle's version is
untouched — the release workflow verifies it equals the tag.

Unlike the rest of the suite, CI here was already fully pinned — all 12 `uses:`
refs are 40-hex SHAs with version comments. The gap was the other half of that
control: nothing ever bumped them. A pinned SHA never moves, including past a
security fix, and unlike `@v6` nothing updates it, so pinning alone trades a live
hole for a slow one.

That staleness was already real, not hypothetical: five actions/checkout refs sat
on df4cb1c (2026-06-02) while `@v6` had moved to d23441a (2026-07-16) six weeks
earlier. security.yml runs gitleaks, Trivy and Semgrep; none of them look at
action pins, so nothing in this repo would ever have said so.

The Gradle side had nothing watching it either. build.gradle has no
`dependencies { }` block — compile/test deps come from the nextflow-plugin
toolchain — so the two plugin versions ARE the dependency surface:
io.nextflow.nextflow-plugin 1.0.0-beta.14 (the Plugin Portal already has
beta.15) and foojay-resolver-convention 1.0.0. Both resolve as Portal marker
artifacts, which is what lets the `gradle` ecosystem see them. nextflow-plugin
bumps will need a real look rather than a rubber stamp — it resolves the Nextflow
API and generates the manifest, the recurring cause behind #3 / #7 / #9.

Group pattern is `*`, not `actions/*`: this repo also uses gradle/actions,
aquasecurity/trivy-action and softprops/action-gh-release, which `actions/*`
would silently exclude — most of the refs in use, including both Trivy pins.

SpawnCiHygieneTest asserts all of it, because reverting a pin or deleting an
entry is a one-line change that fails nothing and reports green. A Spock spec
rather than a shell script because CI already runs this suite (#59), so the check
needs no new job and no new tool. Four specs: refs are SHA-pinned with a readable
version comment; the Dependabot group patterns actually COVER every action in use
(extracted and glob-matched, not grepped for a literal "*", since coverage is the
property that matters); the gradle entry exists; and the two plugin versions are
still literals where Dependabot looks, with no `dependencies { }` block — so if
that surface moves, the gradle entry can't silently stop covering it. Each is
anti-vacuous. The dependabot.yml reader is narrow rather than general (no YAML
library added for one config file) and fails loudly instead of mis-parsing,
including refusing a value followed by `#` rather than truncating it.

Also fixes a way the gate could fail open. Gradle's up-to-date check only
considered Groovy sources, so a commit touching only .github/ or build.gradle
would SKIP `:test` against a warm cache — and CI restores one via
gradle/actions/setup-gradle. A PR that did nothing but revert a pin was therefore
the exact case where the check wouldn't run. Those files are now declared test
inputs. Found by mutating the config and watching the suite report BUILD
SUCCESSFUL six times over; a gate that fails open is worse than no gate, so this
is disclosed rather than quietly fixed.

Not done here: the stale SHAs are left for Dependabot's first PR rather than
hand-bumped, so each bump arrives with its own changelog and review. build.gradle
`version` is untouched — the release workflow verifies it equals the tag.

Verified with JAVA_HOME=/opt/homebrew/opt/openjdk@17: full `./gradlew test` green;
a warm re-run still reports 7 up-to-date (the new inputs add no churn); and the
gate mutation-tested eight ways — float trivy to @master, narrow the groups to
`actions/*`, drop the gradle entry, delete dependabot.yml, drop a version
comment, set version 1, add a `dependencies { }` block, and use `maven` instead of
`gradle` — all eight fail by assertion with a message naming the fix, files
byte-identical afterward.
@scttfrdmn
scttfrdmn merged commit 0503645 into main Aug 3, 2026
4 checks passed
@scttfrdmn
scttfrdmn deleted the fix/80-dependabot branch August 3, 2026 06:37
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.

Actions are SHA-pinned but nothing bumps them, and no Dependabot for the Gradle plugins

1 participant