You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
URL Checker CI is broken - using deprecated action that silently passes #3334
The gaurav-nelson/github-action-markdown-link-check action is deprecated — the repo is explicitly marked as deprecated and points to tcort/github-action-markdown-link-check as its successor.
Additionally, the check-modified-files-only mode used for PRs has never worked correctly due to shallow clone (fetch-depth: 1) preventing git diff from finding changed files.
Impact
On push to master: the old action still works (using markdown-link-check@3.8.7), but this will stop receiving updates
On pull_request: the modified-files check silently checks zero files and always passes — broken links are not caught until they reach master
Fix
PR #3332 replaces the Docker-based action with a direct installation and invocation of markdown-link-check@3.14.2 on the runner, which works correctly. It also fixes PR-level detection by using fetch-depth: 0.
Security Review of tcort/markdown-link-check Dependency Chain
Before adopting markdown-link-check@3.14.2 (and the associated GitHub Action), a security review was performed on the package and its tcort-maintained dependencies. The review covers the npm packages that would run in our CI environment.
Summary
Package
Version
Published Size
Install Hooks
process.env Access
eval()/child_process
Network Calls
npm ↔ GitHub Match
markdown-link-check
3.14.2
42.2 KB (5 files)
None
1 (legitimate, documented)
None
Link checking only
✅ Verified
link-check
5.5.1
19.1 KB (8 files)
None
None
None
Link checking only
✅ Verified
markdown-link-extractor
4.0.3
~2 KB (1 file)
None
None
None
None
✅ Verified
html-link-extractor
1.0.5
~2 KB (1 file)
None
None
None
None
✅ Verified
Verdict: No signs of malicious code or supply chain compromise in any package.
All packages are maintained by Thomas Cort (tcort), who has had a GitHub account since 2010, is the original author of markdown-link-check (created 2016, 685 stars), and is the sole npm publisher for all four packages.
No install hooks — only pretest and test scripts, which do not run on npm install
process.env access: One instance in index.js (~line 34). This powers the documented {{env.VAR_NAME}} replacement feature for templating environment variables into HTTP headers/URL patterns (e.g., auth tokens). The variable name is restricted by regex /[a-zA-Z0-9\-_]+/ and values are only used locally in string replacements. Not exfiltrated anywhere.
No eval(), Function(), child_process, base64, obfuscated code, or unexpected network calls
No install hooks, no process.env, no eval(), no child_process, no network calls, no obfuscation
Dependencies: marked (36k stars, the standard Node.js markdown parser) and html-link-extractor (also by tcort, reviewed below)
npm tarball verified as byte-for-byte match with GitHub source at v4.0.3 tag
html-link-extractor@1.0.5
36 lines of code. Uses cheerio to extract href/src attributes from HTML tags (a, img, iframe, video, audio, source, embed, track, area, link, input).
No install hooks, no process.env, no eval(), no child_process, no network calls, no obfuscation
Sole dependency: cheerio (the de-facto standard Node.js HTML parser)
npm tarball verified as matching GitHub source
Residual risks and recommendations
Mutable v1 tag on the GitHub Action: If using tcort/github-action-markdown-link-check, pin to a commit SHA rather than @v1 to prevent silent changes. (PR Replace deprecated URL checker action with direct invocation #3332 installs the npm package directly, avoiding this.)
Single maintainer: tcort is the sole npm publisher for all four packages. This is a bus factor / account compromise risk, but there is no indication of compromise and this is standard for most GitHub Actions and npm packages.
npm install at runtime: The action runs npm i -g markdown-link-check@3.14.2 at runtime. While the version is pinned, npm does not provide the same immutability guarantees as container image digests. No npm provenance attestations are published yet (tracked in ci: use OIDC NPM publishing tcort/markdown-link-check#544).
Transitive dependencies not deeply audited: Direct dependencies of the tcort packages are all well-known (marked, cheerio, needle, proxy-agent, async, chalk, commander, etc.), but their own transitive dependency trees were not individually reviewed.
Activity
tghosth commentedon Feb 19, 2026
Security Review of
tcort/markdown-link-checkDependency ChainBefore adopting
markdown-link-check@3.14.2(and the associated GitHub Action), a security review was performed on the package and its tcort-maintained dependencies. The review covers the npm packages that would run in our CI environment.Summary
process.envAccesseval()/child_processmarkdown-link-checklink-checkmarkdown-link-extractorhtml-link-extractorVerdict: No signs of malicious code or supply chain compromise in any package.
All packages are maintained by Thomas Cort (
tcort), who has had a GitHub account since 2010, is the original author ofmarkdown-link-check(created 2016, 685 stars), and is the sole npm publisher for all four packages.markdown-link-check@3.14.2 (top-level package)
index.js(8.7 KB),markdown-link-checkCLI (19.5 KB),package.json,LICENSE.md,README.mdpretestandtestscripts, which do not run onnpm installprocess.envaccess: One instance inindex.js(~line 34). This powers the documented{{env.VAR_NAME}}replacement feature for templating environment variables into HTTP headers/URL patterns (e.g., auth tokens). The variable name is restricted by regex/[a-zA-Z0-9\-_]+/and values are only used locally in string replacements. Not exfiltrated anywhere.eval(),Function(),child_process, base64, obfuscated code, or unexpected network callsasync,chalk,commander,link-check,markdown-link-extractor,needle,progress,proxy-agent,xmlbuilder2— all well-known, widely-used packageslink-check@5.5.1
Every line of all 8 published JS files was read and analysed:
index.js(32 lines) — dispatches to protocol-specific handlerslib/BlackHole.js(14 lines) — Writable stream that discards datalib/LinkCheckResult.js(14 lines) — simple data classlib/proto/hash.js(10 lines) — anchor link checker, pure logiclib/proto/file.js(21 lines) —file://URL checker usingfs.access()lib/proto/http.js(124 lines) — HTTP HEAD/GET requests vianeedle, with retry logic for 429slib/proto/https.js(3 lines) — re-exports./httplib/proto/mailto.js(35 lines) — email validation via MX lookupComprehensive grep for dangerous patterns across all files:
process.envchild_process/exec/spawneval(/Function(base64/Buffer.from/atob/btoacrypto(mining) /WebSocket/net.connectneedle,ms,proxy-agent,node-email-verifier,is-relative-url(declared but unused — minor hygiene issue). All well-known packages.markdown-link-extractor@4.0.3
The entire package logic is 13 lines of code in
index.js:process.env, noeval(), nochild_process, no network calls, no obfuscationmarked(36k stars, the standard Node.js markdown parser) andhtml-link-extractor(also by tcort, reviewed below)html-link-extractor@1.0.5
36 lines of code. Uses
cheerioto extracthref/srcattributes from HTML tags (a,img,iframe,video,audio,source,embed,track,area,link,input).process.env, noeval(), nochild_process, no network calls, no obfuscationcheerio(the de-facto standard Node.js HTML parser)Residual risks and recommendations
Mutable
v1tag on the GitHub Action: If usingtcort/github-action-markdown-link-check, pin to a commit SHA rather than@v1to prevent silent changes. (PR Replace deprecated URL checker action with direct invocation #3332 installs the npm package directly, avoiding this.)Single maintainer:
tcortis the sole npm publisher for all four packages. This is a bus factor / account compromise risk, but there is no indication of compromise and this is standard for most GitHub Actions and npm packages.npm install at runtime: The action runs
npm i -g markdown-link-check@3.14.2at runtime. While the version is pinned, npm does not provide the same immutability guarantees as container image digests. No npm provenance attestations are published yet (tracked in ci: use OIDC NPM publishing tcort/markdown-link-check#544).Transitive dependencies not deeply audited: Direct dependencies of the tcort packages are all well-known (
marked,cheerio,needle,proxy-agent,async,chalk,commander, etc.), but their own transitive dependency trees were not individually reviewed.Node.js base image: The Docker-based action uses
node:21.7.3-alpine3.18which is EOL (tracked in Fix wrong Node version tcort/github-action-markdown-link-check#5). This is a maintenance concern for the action, not directly relevant if installing the npm package directly as in PR Replace deprecated URL checker action with direct invocation #3332.🤖 Generated with Claude Code