Skip to content

Commit d38300f

Browse files
committed
test
1 parent 9dab6ad commit d38300f

2 files changed

Lines changed: 112 additions & 1 deletion

File tree

.github/config/lychee.toml

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
############################# Display #############################
2+
3+
# Verbose program output
4+
verbose = true
5+
6+
# Show progress
7+
progress = true
8+
9+
# Path to summary output file.
10+
# output = "report.md"
11+
12+
############################# Cache ###############################
13+
14+
# Enable link caching. This can be helpful to avoid checking the same links on
15+
# multiple runs.
16+
cache = true
17+
18+
############################# Runtime #############################
19+
20+
# Number of threads to utilize.
21+
# Defaults to number of cores available to the system if omitted.
22+
threads = 6
23+
24+
# Maximum number of allowed redirects [default: 10]
25+
max_redirects = 10
26+
27+
# Maximum number of concurrent network requests [default: 128]
28+
max_concurrency = 30
29+
30+
############################# Requests ############################
31+
32+
# User agent to send with each request
33+
user_agent = "curl/7.83.1"
34+
35+
# Website timeout from connect to response finished
36+
timeout = 10
37+
38+
# Minimum wait time in seconds between retries of failed requests.
39+
retry_wait_time = 2
40+
41+
# Comma-separated list of accepted status codes for valid links.
42+
# Omit to accept all response types.
43+
#accept = "text/html"
44+
45+
# Proceed for server connections considered insecure (invalid TLS)
46+
insecure = true
47+
48+
# Comma-separated list of accepted status codes for valid links.
49+
# Don't work as of yet until https://github.com/lycheeverse/lychee/issues/644
50+
# is resolved
51+
accept = [200,204,301,429,403]
52+
53+
# Only test links with the given scheme (e.g. https)
54+
# Omit to check links with any scheme
55+
#scheme = "https"
56+
57+
# Request method
58+
method = "get"
59+
60+
# Custom request headers
61+
headers = []
62+
63+
############################# Exclusions ##########################
64+
65+
# Exclude URLs from checking (supports regex)
66+
67+
# balena base images account for ~1400 request to GitHub, they are
68+
# omitted to avoid being rate limited.
69+
# See https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-limiting
70+
# The openvpn link is omitted as trying to auto chek it results in
71+
# a 503, even when it is available.
72+
# The meta-balena link is included in parameterized scripts and as
73+
# a result will always produce a failing link.
74+
# The myorg/myapp link is a dummy address used in an example contract so is omitted.
75+
# The balena/resin API urls will not respond to unauthenticated requests
76+
# The gstatic and googleapis links go 404 and are excluded ever since we started checking HTML
77+
# balenaCLI linux binary URLs always error out since they are generated on run time only
78+
# File URLs are excluded as they aren't checked properly and error out
79+
exclude = [
80+
"developer.aliyun.com/*",
81+
"mirrors.ustc.edu.cn/*",
82+
"eryajf.net/*",
83+
"rsproxy.cn/*",
84+
"https://mirrors.cloud.tencent.com/go/",
85+
"http://maven.aliyun.com/nexus/content/groups/public/",
86+
"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git",
87+
"https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git",
88+
]
89+
90+
# Exclude URLs contained in a file from checking
91+
exclude_file = []
92+
93+
include = []
94+
95+
include_verbatim = true
96+
97+
# Exclude all private IPs from checking
98+
# Equivalent to setting `exclude_private`, `exclude_link_local`, and `exclude_loopback` to true
99+
exclude_all_private = true
100+
101+
# # Exclude private IP address ranges from checking
102+
# exclude_private = false
103+
104+
# # Exclude link-local IP address range from checking
105+
# exclude_link_local = false
106+
107+
# # Exclude loopback IP address range and localhost from checking
108+
# exclude_loopback = false
109+
110+
# Exclude all mail addresses from checking
111+
exclude_mail = true

.github/workflows/check-links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- name: Link Checker
1212
uses: lycheeverse/lychee-action@v1.5.1
1313
with:
14-
args: --config ./.github/config/lychee.toml README.md
14+
args: --config ./.github/config/lychee.toml
1515
format: markdown
1616
output: ./lychee/out.md
1717
fail: true

0 commit comments

Comments
 (0)