iroha icon indicating copy to clipboard operation
iroha copied to clipboard

Lychee action consistently fails with GitHub links

Open 0x009922 opened this issue 8 months ago • 1 comments

The Lychee action (https://github.com/lycheeverse/lychee-action) we use in pr.yml consistently fails to verify a single link from GitHub:

I tried (in #5399):

  • Specifying GITHUB_TOKEN as they suggest - didn't help to reduce rate limiting
  • Specifying larger --retry-wait-time (5 seconds instead of 1) - didn't help

Finally, I just set fail: false for this action to not fail the entire workflow.

0x009922 avatar May 02 '25 04:05 0x009922

Caching can be added to the workflow to reduce the issue. https://github.com/lycheeverse/lychee-action/?tab=readme-ov-file#utilising-the-cache-feature

However, StackOverflow links tend to return 403, in this case:

  • use https://lychee.cli.rs/troubleshooting/redirects/#bot-protection
  • ignore StackOverflow links (exclude in config)

aoyako avatar May 22 '25 05:05 aoyako