Repository navigation
ci: replace abandoned github/super-linter fork with upstream, pinned by SHA - #1450
Conversation
…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]>
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🟡 Changes recommended
The new workflow-level permissions likely needs statuses: write for Super-Linter to report status correctly, and it is currently restricted to contents: read only.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Updates the Markdown linting GitHub Actions workflow to use the upstream super-linter/super-linter action (pinned by commit SHA) and adjusts checkout behavior/permissions to support newer Super-Linter requirements and supply-chain pinning.
Changes:
- Switch from
github/super-linter@v5to upstreamsuper-linter/super-linterpinned to thev8.7.0commit SHA. - Add
fetch-depth: 0to ensure Super-Linter’s git repository validation can succeed. - Add workflow-level
permissions: contents: readto restrict the defaultGITHUB_TOKENscope.
File summaries
| File | Description |
|---|---|
.github/workflows/markdown-linter.yml |
Pins Super-Linter to upstream v8.7.0 SHA, ensures full git history checkout, and scopes workflow token permissions. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
🕓 Queued for automated review — 24th in line, estimated start in ~7 h (commit 61c6029)
|
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
What
Replaces
github/super-linter@v5(in.github/workflows/markdown-linter.yml)with the canonical
super-linter/super-linter, pinned by commit SHA tov8.7.0.Also adds
fetch-depth: 0to the checkout step and a workflow-levelpermissions: contents: readblock.Why
github/super-linteris an abandoned fork ofsuper-linter/super-linter—791 commits behind upstream, frozen at tag
v7since 2024-08-29, with nov8tag ever published.
Dependabot PR #1443 attempted an in-place
v5 -> v7bump on this fork.Auditing that PR surfaced two problems that block it permanently:
v7on this fork falls inside the affected rangeof CVE-2026-25761 (HIGH, CVSS 8.8 — command injection via a crafted
filename). The upstream fix (
8.3.1) was never backported to the fork, sothe CVE is unpatchable on
github/super-linter's own coordinates —there's no version to bump to that resolves it. Advisories are keyed to
super-linter/super-linter, so Dependabot's security alerting likely nevermatched this workflow in the first place.
v6.0.0added an unconditionalgit-repo validation step; without
fetch-depth: 0on checkout it hard-failsbefore linting anything. Dependabot cannot edit the checkout step, so a
rebase of build(deps): Bump github/super-linter from 5 to 7 #1443 cannot fix this — the failure is deterministic on that PR.
This PR switches to the real upstream project instead, pinned by SHA per
supply-chain policy, and fixes both root causes directly.
Verification
docs/upgrade-guide.mdat thev8.7.0tag: none of the env varsthis workflow sets (
VALIDATE_ALL_CODEBASE,DEFAULT_BRANCH,GITHUB_TOKEN,VALIDATE_MD,VALIDATE_OPENAPI,VALIDATE_YAML,YAML_CONFIG_FILE) were renamed or removed acrossv5 -> v6 -> v7 -> v8.4ce20838b8ab83717e78138c5b3a1407148e0918verified againstrefs/tags/v8.7.0onsuper-linter/super-lintervia the GitHub API.Closes/supersedes #1443 (closing separately with a comment cross-linking
this PR).
🤖 Generated with Claude Code