Skip to content

Commit 998ad18

Browse files
authored
[CI] Accept 403/429 responses in lychee (#7584)
fix lychee: accept 429, 403
1 parent 2b7ef71 commit 998ad18

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

.lycheeignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

lychee.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# For all options, see <https://lychee.cli.rs/usage/config/>
2+
# Accept 200 (OK) and 403 (Forbidden) responses as valid
3+
accept = [
4+
"200",
5+
"403",
6+
"429"
7+
]
8+
9+
# Exclude links
10+
exclude = [
11+
"zhuanlan.zhihu.com",
12+
"demo.doctrp.top",
13+
"127.0.0.1",
14+
"localhost"
15+
]
16+
17+
# Don't check any links to private addresses
18+
exclude_all_private = true
19+
20+
# Avoid rate limits by limiting concurrency of checks
21+
max_concurrency = 10
22+
23+
# Redirected links can eventually become broken links
24+
max_redirects = 0

0 commit comments

Comments
 (0)