-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Describe the bug
Currently Link checker has --base flag used.
This impact link checker to test links between markdown files.
See job logs for reference.
I suggest to change parameters as following:
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v2
with:
args: >-
'./**/*.md'
--verbose
--no-progress
--user-agent 'Mozilla/5.0 (X11; Linux x86_64) Chrome/134.0.0.0'
--retry-wait-time 30
--max-retries 5
--accept 100..=103,200..=299,429
--cookie-jar cookies.json
--exclude-all-private
format: markdown
fail: true
I also found, that some web-sites use different mechanism to block bots. It is usefull to use not default user-agent and enable cookies. so redirects for some web sites will not be endless (with max redirects issue). It is also good to exclude all private addresses (from examples in docs) and increase retry wait time, so in case web server block connection for huge number of connections.
Not sure, maybe --max-concurrency also good to decrease from default value 128. Because now, some links closed from external web sites for unknown reason. See logs as reference from repo with huge amount of links (more than 1100). But link is good.
To Reproduce
Run Link Checker job in repo, which contains markdown files with local links for other markdown files.
Version
No response
Logs
Additional information
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status