Skip to content

Commit 30e2c73

Browse files
doanbactamclaude
andcommitted
fix: improve link-check workflow with User-Agent and accept codes
- Add User-Agent header to bypass bot protection - Accept 403, 401, 429 as valid (server responding, not dead links) - Add fail: true to ensure CI fails on actual broken links Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent cae5dcb commit 30e2c73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/link-check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ jobs:
1515
- name: Check links
1616
uses: lycheeverse/lychee-action@v2.0.2
1717
with:
18-
args: --verbose --no-progress './**/*.md'
18+
args: --verbose --no-progress --header "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36" --accept "200,203,301,302,403,401,429" './**/*.md'
19+
fail: true

0 commit comments

Comments
 (0)