Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion skills/link-health-scanner/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ Scan all repositories in a GitHub organization for broken links. Creates GitHub
## Prerequisites

- `bash` 4+ (macOS ships 3.2; use `brew install bash` for 4+)
- `lychee` (link checker: `brew install lychee`)
- `lychee` >= 0.23.0 (link checker: `brew install lychee`) — the scanner relies on
lychee's default exclusion of URLs inside code blocks; do not pass `--include-verbatim`
- `gh` (GitHub CLI, authenticated with org access)
- `jq` (JSON processor)

Expand Down
5 changes: 4 additions & 1 deletion skills/link-health-scanner/scripts/link-health-scanner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ for repo_dir in "$REPOS_DIR"/*/ "$REPOS_DIR"/.github/; do
.key as $filepath |
.value[] |
select(.url | test("^https?://")) |
# Suppress unreachable-by-design hostnames at URL level
# Suppress unreachable-by-design hostnames at URL level.
# Bare .svc covers both plain cluster-local service names (foo.ns.svc) and
# the fully-qualified foo.ns.svc.cluster.local form.
select(.url | test("://[^/]*\\.svc([:/]|$)") | not) |
select(.url | test("://[^/]*\\.svc\\.cluster\\.local([:/]|$)") | not) |
select(.url | test("://[^/]*\\.local([:/]|$)") | not) |
select(.url | test("://(10\\.[0-9]|172\\.(1[6-9]|2[0-9]|3[01])\\.[0-9]|192\\.168\\.[0-9])[0-9.]*([:/]|$)") | not) |
Expand Down
Loading