Skip to content

build(deps): Bump github/super-linter from 5 to 7 - #1443

Closed
dependabot[bot] wants to merge 1 commit into
v1.8-devfrom
dependabot/github_actions/github/super-linter-7
Closed

dependabot[bot] wants to merge 1 commit into
v1.8-devfrom
dependabot/github_actions/github/super-linter-7

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Sep 8, 2026

Copy link
Copy Markdown
Contributor

Bumps github/super-linter from 5 to 7.

Release notes

Sourced from github/super-linter's releases.

v7

What's Changed

New Contributors

Full Changelog: github/super-linter@v6...v7

v6

Full Changelog: github/super-linter@v4.10.2...v6

Changelog

Sourced from github/super-linter's changelog.

8.3.1 (2025-12-15)

🐛 Bugfixes

⬆️ Dependency updates

  • bundler: bump rubocop-rails in /dependencies in the rubocop group (#7251) (d8a2032)
  • java: bump com.google.googlejavaformat:google-java-format (#7270) (140a2e3)
  • java: bump com.puppycrawl.tools:checkstyle (#7264) (550df3c)
  • java: bump the java-gradle group across 3 directories with 3 updates (#7252) (5306a0a)
  • npm: bump @​modelcontextprotocol/sdk in /dependencies (#7248) (4d59852)
  • npm: bump express from 5.1.0 to 5.2.1 in /dependencies (#7246) (50462d3)
  • npm: bump jws from 4.0.0 to 4.0.1 in /dependencies (#7260) (cc90344)
  • npm: bump next from 16.0.7 to 16.0.9 in /dependencies (#7277) (b7cedfb)
  • npm: bump the npm group across 1 directory with 3 updates (#7289) (f65215e)
  • npm: bump the npm group across 1 directory with 5 updates (#7271) (b4e616f)
  • npm: bump the npm group across 1 directory with 7 updates (#7259) (0ab9ad4)
  • npm: bump the npm group across 1 directory with 8 updates (#7266) (39e94f8)
  • python: bump the pip group across 1 directory with 2 updates (#7288) (4559b6e)
  • python: bump the pip group across 1 directory with 7 updates (#7265) (026d3fe)

🧰 Maintenance

8.3.0 (2025-11-28)

🚀 Features

🐛 Bugfixes

... (truncated)

Commits
  • b807e99 Merge pull request #10 from github/upstream
  • 5ef42d2 Merge branch 'main' into upstream
  • b92721f chore(main): release 7.1.0 (#6040)
  • 5b13ace feat: add pyink as a Python formatter (#6083)
  • 202d47f deps(npm): bump renovate from 38.27.0 to 38.55.1 in /dependencies (#6082)
  • 1b48fe5 deps(docker): bump alpine/helm from 3.15.3 to 3.15.4 (#6053)
  • 1974944 deps(docker): bump tenable/terrascan from 1.18.11 to 1.19.2 (#6054)
  • 4d4214c deps(docker): bump dotnet/sdk (#6055)
  • 544c685 deps(docker): bump golangci/golangci-lint from v1.60.1 to v1.60.3 (#6078)
  • 74111d2 deps(npm): bump @​react-native/eslint-config in /dependencies (#6070)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github/super-linter](https://github.com/github/super-linter) from 5 to 7.
- [Release notes](https://github.com/github/super-linter/releases)
- [Changelog](https://github.com/github/super-linter/blob/main/CHANGELOG.md)
- [Commits](github/super-linter@v5...v7)

---
updated-dependencies:
- dependency-name: github/super-linter
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update Github_actions code labels Sep 8, 2026
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file github_actions Pull requests that update Github_actions code labels Sep 8, 2026
@Claudius-Maginificent

Copy link
Copy Markdown
Collaborator

🔍 Dependency Security Audit — github/super-linter v5 → v7

Verdict: 🔴 DO NOT MERGE. This bump moves the repository from a non-vulnerable version into a known-vulnerable one, and the version it lands on has no reachable fix. The red CI check is a genuine, deterministic breaking change — not a flake, and a rebase will not clear it.

Diff audited in full: one line, .github/workflows/markdown-linter.yml:23. Nothing hidden.


Change Summary

Action github/super-linter
Old → New v5 → v7 (semver-major)
Diff 1 file, 1 insertion, 1 deletion
Runtime/consensus impact None — CI-only, no node, crypto, or consensus code path touched
Diff integrity ✅ Clean — see below

🔴 SEC-001 — The bump introduces CVE-2026-25761 (HIGH). v5 was not affected; v7 is.

Advisory GHSA-r79c-pqj3-577x / CVE-2026-25761
Upstream rating HIGH — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (8.8)
Affected >= 6.0.0, < 8.3.1
v5 (current) ✅ Not affected — below the introduced range
v7 (proposed) ❌ Affected
CWE CWE-78 (OS command injection)
CISA KEV Not listed

Command injection via crafted filenames. An attacker opens a PR adding a file whose name contains shell command substitution ($(...)); super-linter's file-discovery logic evaluates it, yielding arbitrary command execution on the runner and potential GITHUB_TOKEN disclosure.

This workflow matches the advisory's exploit preconditions closely:

  • ✅ Triggers on pull_request — the exact vector named in the advisory
  • ✅ Public repository, so fork PRs reach it
  • ✅ The paths filter (**.md, **.yml, **.yaml) is trivially satisfied by a payload filename such as $(...).md
  • ⚠️ No permissions: block on this workflow — see SEC-004, the advisory's own named amplifier
  • ⚠️ USE_FIND_ALGORITHM is unset and defaults to false, so super-linter uses its git-based file-discovery path — the very logic the advisory names as the injection point

I have not proven exploitability against this exact configuration end-to-end (VALIDATE_ALL_CODEBASE: true may alter which discovery branch handles filenames), and I will not claim otherwise. The advisory draws no such exemption, the version is squarely in the affected range, and the prudent posture is to treat this workflow as exposed until upstream states otherwise.

Mitigating factors, stated fairly: for pull_request runs from forks GitHub withholds secrets and drops the token to read-only, and first-time contributors require run approval (hence UI:R). Neither is a fix — a returning contributor bypasses the approval gate, the workflow also runs on push to master / v*-dev where fork restrictions do not apply, and arbitrary execution on a CI runner of a consensus-critical node remains materially serious regardless of token scope.


🔴 SEC-002 — github/super-linter is an abandoned fork with no path to the fix

This is the finding that decides the remediation, and it is easy to miss: github/super-linter is not the super-linter project. It is a fork.

github/super-linter (referenced here) super-linter/super-linter (upstream)
Role Fork ("fork": true, parent = upstream) Canonical project
Stars 153 10,584
Highest tag v7 v8.7.0
v7 tag commit b807e99 — dated 2024-08-29 1215045 (2025-05-13)
Position vs upstream main 791 commits behind, 3 ahead —

Consequences:

  1. The fix is unreachable. CVE-2026-25761 is fixed in 8.3.1. github/super-linter has no v8 tag (API returns 404) and its v7 has been frozen since August 2024. There is no version on these coordinates that resolves the vulnerability — you cannot patch forward without changing the action reference.
  2. Its v7 is not even a release. It resolves to a fork-side merge commit made two weeks after upstream v7.0.0, not to any published upstream release.
  3. Likely invisible to Dependabot security alerts. The advisory is keyed to the package name super-linter/super-linter. This workflow references github/super-linter. Action advisories match on the owner/repo string in uses:, so security alerting on this dependency should be treated as non-functional until independently confirmed. Note the irony: Dependabot happily raised this version bump while the security advisory for the very same code most likely does not match. I could not settle this empirically — GET /repos/dashpay/tenderdash/dependabot/alerts returned HTTP 403 (token lacks the required scope), so a maintainer with admin access should confirm whether any super-linter alert exists.

🟠 SEC-003 — Mutable, unpinned tag on the least trustworthy action in the tree

uses: github/super-linter@v7 resolves a lightweight, mutable tag in a third-party, effectively unmaintained fork. Whoever controls that fork can repoint v7 at arbitrary code, which then executes in CI with the workflow token — the tj-actions/changed-files compromise (March 2025) is precisely this class of attack.

The repo's other actions (actions/checkout@v7, actions/[email protected]) are first-party GitHub actions, so the same convention carries far less risk there. This one does not warrant the same trust. GitHub hardening guidance is to pin third-party actions to a full-length commit SHA (CWE-1357, CWE-829).


🟠 SEC-004 — No permissions: block; workflow token scope is unconstrained by default

.github/workflows/markdown-linter.yml sets no permissions:, so the job inherits the repository default workflow token scope. The advisory explicitly names this as the condition that escalates the injection from execution to credential compromise:

the GITHUB_TOKEN needs to have unconstrained access to repository resources

The repo already has the right convention elsewhere — govulncheck.yml:12 and check-generated.yml:14 both declare permissions: contents: read. This workflow (and 11 siblings) simply does not follow it. Least privilege here is a one-line change and blunts SEC-001 considerably.

⚠️ Could not verify: I attempted to read the repository's actual default workflow token permissions via GET /repos/dashpay/tenderdash/actions/permissions/workflow and received HTTP 403 (insufficient token scope); the escalated retry was declined. A maintainer should confirm whether the default is "read and write" — if it is, SEC-001's impact rises materially.


⚙️ CI Failure Analysis — caused by the bump, and a rebase will not fix it

The failing Super linter check (job 102147508629) is deterministic and directly attributable to the version change:

[INFO]  Check that the local repository has the full history and that the repository is not shallow.
[INFO]  Check that you set the 'fetch-depth: 0' option for the actions/checkout step ...
[INFO]  Is shallow repository: true
[FATAL] The GITHUB_SHA reference (314ab8063ad003be02cdd05adfb01d626f306780) doesn't exist in this Git repository

Root cause, verified against upstream source rather than inferred. This is not merely "v6 requires fetch-depth: 0" — v6.0.0 introduced an unconditional git-repository validation step that v5 never executed for this workflow at all:

  • In v5, the only code touching git history sat inside BuildFileList() behind if [ "${VALIDATE_ALL_CODEBASE}" == "false" ]. This workflow sets it to true, so v5 never entered that branch and never cared that the clone was shallow. v5's validation.sh contains no SHA-validation function whatsoever.
  • In v6.0.0, lib/linter.sh calls ValidateLocalGitRepository / ValidateGitShaReference / ValidateDefaultGitBranch gated only on USE_FIND_ALGORITHM == false — which is the default, and which this workflow never overrides. It therefore runs regardless of VALIDATE_ALL_CODEBASE.
  • ValidateGitShaReference emits the fetch-depth hint and then fatals — matching the log byte for byte.
  • v6.0.0's release notes declare this a breaking change: "exit on errors when running Git" (#4889) and "run linters against the workspace" (#5041).

The Checkout Code step (markdown-linter.yml:18-19) sets no fetch-depth, so it defaults to a depth-1 shallow clone and the action aborts before linting a single file.

@dependabot rebase cannot fix this — verified. The checkout step is byte-identical on base v1.8-dev; Dependabot's diff touches only line 23 and cannot modify the checkout step. A rebase replays the same one-line change onto the same shallow-clone configuration. The workflow file itself must be edited by a human.

Baseline confirms the bump is the cause: every recent markdown-linter.yml run on v1.8-dev / v1.7-dev and other PRs under @v5 concluded success. Run 34251722531 (this PR) is the only failure. The shallow-checkout condition is months old and was harmless under v5; it became fatal only when v7 was substituted. Not flaky, not environmental.

Good news, for once: a sweep of the v6.0.0 and v7.0.0 upgrade guides against every env var this workflow sets (VALIDATE_ALL_CODEBASE, DEFAULT_BRANCH, GITHUB_TOKEN, VALIDATE_MD, VALIDATE_OPENAPI, VALIDATE_YAML, YAML_CONFIG_FILE) found no other breaking change affecting it. Only SQL_CONFIG_FILE/VALIDATE_SQL were removed in v7, and neither is used here. Adding fetch-depth: 0 should be the sole workflow blocker.

Net effect if merged as-is: the markdown/YAML lint gate stops linting entirely while simultaneously importing a HIGH-severity RCE.


✅ Diff Integrity — clean

Due diligence, reported plainly: I verified the fork's v7 divergence from upstream rather than trusting the changelog. The 3 commits present in github/super-linter@v7 but absent from upstream main are:

4e51915  2024-04-23  zkoppert  Update README.md
5ef42d2  2024-08-29  zkoppert  Merge branch 'main' into upstream
b807e99  2024-08-29  zkoppert  Merge pull request #10 from github/upstream

Total content delta: README.md only. No source changes, no build/install hooks, no new network calls, no obfuscated content, no credential access. The fork is stale, not tampered with — the risk here is abandonment, not compromise.


📋 Recommendation

Close this PR in favour of a corrected change. Bumping within github/super-linter cannot reach a fixed version, so the action reference itself must move upstream:

      - name: Checkout Code
        uses: actions/checkout@v7
        with:
          fetch-depth: 0          # required by super-linter v6+
      - name: Install dependencies
        run: sudo apt-get update && sudo apt-get install -y libpcap-dev
      - name: Lint Code Base
        # super-linter/super-linter (canonical) v8.7.0 — pinned by SHA.
        # >= 8.3.1 required: fixes CVE-2026-25761 (command injection via filename).
        uses: super-linter/super-linter@4ce20838b8ab83717e78138c5b3a1407148e0918

plus, at workflow level:

permissions:
  contents: read

Ordered actions:

  1. Do not merge this PR. It is a net security regression.
  2. Switch the reference from the abandoned fork github/super-linter to canonical super-linter/super-linter, at ≥ 8.3.1 (latest v8.7.0), pinned by full commit SHA.
  3. Add fetch-depth: 0 to the checkout step — mandatory for v6+, otherwise the job hard-fails.
  4. Add permissions: contents: read to markdown-linter.yml, matching the convention already used in govulncheck.yml and check-generated.yml.
  5. Confirm the repository's default workflow token permissions (I was blocked by 403 — see SEC-004).
  6. Update .github/dependabot.yml so the github-actions ecosystem tracks the new coordinates; verify Dependabot alerts actually fire for super-linter/super-linter.
  7. Expect linter findings on the first genuinely green run — see the adjacent config findings below.

🧹 Adjacent findings (pre-existing, non-blocking, surfaced rather than silenced)

Turned up while establishing what this action actually reads. None are caused by this PR; all deserve a follow-up issue.

  • This repo's markdownlint config has never been loaded — since 2022. super-linter's MARKDOWN_CONFIG_FILE default is .markdown-lint.yml (dot-prefixed, hyphenated), unchanged from v5.0.0 through v7.4.0. The workflow sets no override, so the action looks for .github/linters/.markdown-lint.yml — which does not exist. The repo's file is named .github/linters/markdownlint.yml (no leading dot, no hyphen), so it is silently ignored and super-linter falls back to its bundled defaults. Every custom rule in it (MD007 indent 4, MD013 off, MD024 siblings-only, MD025 off, MD033, no-hard-tabs, whitespace) has been inert since it was introduced. The markdown CI gate has been decorative for four years. Fix: rename the file to .github/linters/.markdown-lint.yml, or set MARKDOWN_CONFIG_FILE: markdownlint.yml — then brace for the backlog of real findings.
  • Two diverging markdownlint configs. Root .markdownlint.yml and .github/linters/markdownlint.yml carry different rule sets (MD033: false vs MD033: {no-inline-html: false}, and the root adds MD001/MD010/MD012/MD028/MD036 overrides). Given the point above, only the root file has any effect — and only on developers' editors, not CI. Consolidate to one source of truth, or document the split explicitly.
  • .github/linters/markdownlint.yml:1 is default: true, — in a YAML block mapping the comma is not a delimiter, so this parses as the string "true,", not the boolean. Inert today only because the file is never read.
  • DEFAULT_BRANCH: master (markdown-linter.yml:26) is stale. The repository's actual default branch is v1.8-dev; master is a legacy branch. super-linter auto-detects the default branch on GitHub Actions and needs no override. Currently masked by VALIDATE_ALL_CODEBASE: true, but it will silently mis-scope linting the moment anyone turns that off.
  • Action pinning across the repo is mixed — major tags (checkout@v7, stale@v11, github-script@v8) alongside full versions ([email protected], [email protected]). Pre-existing and untouched here; @v7 introduces no new inconsistency. SEC-003 stands on the trust level of this specific third-party fork, not on repo style.

Sources checked: OSV.dev, GitHub Advisory Database, NVD, CISA KEV, GitHub REST API (tag/commit provenance, fork comparison), upstream release history, and the failing CI job log.


🤖 Co-authored by Claudius the Magnificent AI Agent

@Claudius-Maginificent

Copy link
Copy Markdown
Collaborator

@dependabot rebase

@dependabot @github

dependabot Bot commented on behalf of github Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

Sorry, only users with push access can use that command.

@Claudius-Maginificent

Copy link
Copy Markdown
Collaborator

Closing in favour of #1450, which switches .github/workflows/markdown-linter.yml to the canonical super-linter/super-linter (pinned by SHA to v8.7.0) instead of attempting an in-place bump of this abandoned fork.

Rationale (full detail in the security audit above): github/super-linter@v7 falls inside the affected range of CVE-2026-25761 (HIGH, command injection via crafted filenames), and the fix was never backported to this fork — there is no version bump on these coordinates that resolves it. The CI failure here is also structural (missing fetch-depth: 0, required since super-linter v6.0.0), so a rebase cannot fix this PR either.

🤖 Co-authored by Claudius the Magnificent AI Agent

@lklimek lklimek closed this Sep 9, 2026
@dependabot @github

dependabot Bot commented on behalf of github Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/github_actions/github/super-linter-7 branch September 9, 2026 10:31
lklimek added a commit that referenced this pull request Sep 9, 2026
…by SHA (#1450)

* ci: replace abandoned github/super-linter fork with upstream, pinned by SHA

github/super-linter is an abandoned fork of super-linter/super-linter,
791 commits behind upstream and frozen at tag v7 since 2024-08-29 with
no v8 tag ever published. Its v7 coordinates fall inside the affected
range of CVE-2026-25761 (HIGH, CVSS 8.8: command injection via a
crafted filename), and the upstream fix (8.3.1) was never backported
to the fork, making the vulnerability unpatchable on this dependency's
current coordinates.

Switch to the canonical super-linter/super-linter, pinned by commit SHA
to v8.7.0. Also:
- add fetch-depth: 0 to the checkout step, required since super-linter
  v6.0.0 added an unconditional git-repo validation that fails on a
  shallow clone (this is also what breaks CI on dependabot PR #1443,
  which attempted the in-place v5->v7 bump on this fork)
- add a workflow-level `permissions: contents: read` block, matching
  the other workflows in this repo (govulncheck.yml, check-generated.yml)

Verified against docs/upgrade-guide.md at v8.7.0: none of the env vars
this workflow sets (VALIDATE_ALL_CODEBASE, DEFAULT_BRANCH, GITHUB_TOKEN,
VALIDATE_MD, VALIDATE_OPENAPI, VALIDATE_YAML, YAML_CONFIG_FILE) were
renamed or removed across v5->v6->v7->v8.

Supersedes dependabot PR #1443, which is unfixable by rebase (the CI
failure is structural: dependabot cannot edit the checkout step).

Co-Authored-By: Claude Sonnet 5 <[email protected]>

* Update permissions for markdown linter workflow

Co-authored-by: Copilot Autofix powered by AI <[email protected]>

---------

Co-authored-by: Claude Sonnet 5 <[email protected]>
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file github_actions Pull requests that update Github_actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants