Repository navigation
Add Dependabot for the SHA-pinned actions and the Gradle plugins - #81
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 everbumped them.
Pinning without Dependabot is half a control
A pinned SHA never moves — including past a security fix — and unlike
@v6nothing updates it. The staleness here was already real:
@v6had moved toactions/checkout(×5)df4cb1c(2026-06-02)d23441a(2026-07-16)Six weeks stale, and
security.yml(gitleaks + Trivy + Semgrep) doesn't look ataction pins, so nothing in this repo would ever have said so.
The Gradle plugins had nothing watching them either
build.gradlehas nodependencies { }block — compile/test deps come from thenextflow-plugin toolchain — so the two plugin versions are the dependency
surface:
io.nextflow.nextflow-plugin1.0.0-beta.141.0.0-beta.15org.gradle.toolchains.foojay-resolver-convention1.0.01.0.0Both resolve as Plugin Portal marker artifacts, which is what lets Dependabot's
gradleecosystem see them. Flagged in the config:nextflow-pluginbumps need areal look, not a rubber stamp — it resolves the Nextflow API and generates the
manifest, the recurring cause behind #3 / #7 / #9.
Group pattern is
*, notactions/*— this repo also usesgradle/actions,aquasecurity/trivy-actionandsoftprops/action-gh-release, i.e. most of therefs in use, including both Trivy pins.
The wiring check
SpawnCiHygieneTest— a Spock spec, because CI already runs this suite (#59), sono new job and no new tool. Four specs:
# vX.Y.Zcommentextracted and glob-matched, not grepped for a literal
"*"gradleentry existsno
dependencies { }block — so if that surface moves, thegradleentrycan't silently stop covering it
All anti-vacuous. The
dependabot.ymlreader is narrow rather than general (noYAML library added to the build for one config file) and fails loudly instead of
mis-parsing.
Gradle's up-to-date check only considered Groovy sources. A commit touching only
.github/orbuild.gradleskips:testagainst a warm cache — and CI restoresone via
gradle/actions/setup-gradle. So a PR that did nothing but revert a pinwas precisely the case where the check wouldn't run.
I found this by mutating the config and watching the suite report
BUILD SUCCESSFULsix times over — my first mutation run was invalid and I nearlyshipped a gate that asserted nothing.
.github/,build.gradleandsettings.gradleare now declared test inputs. Disclosing rather than quietlyfixing, because a gate that fails open is worse than no gate.
Verification
With
JAVA_HOME=/opt/homebrew/opt/openjdk@17:./gradlew testgreen7 actionable tasks: 7 up-to-date— the new inputsadd no churn
the build script), files byte-identical afterward:
trivy-actionto@masteractions/*gradleentrydependabot.yml# v2commentversion: 1dependencies { }blockmaveninstead ofgradleNot 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'sversionisuntouched — the release workflow verifies it equals the tag.