Fix CI: improve security fix and add link checker configuration

- Fix import order (ast before asyncio)
- Remove NameError from exception handling (ast.literal_eval doesn't raise it)
- Add .lycheeignore to exclude intermittently unavailable star-history API
- Update link-check workflow to exclude star-history API and accept 503 status codes
This commit is contained in:
aakash
2025-11-13 13:05:00 -08:00
parent 930b79cc98
commit abf0b2c676
3 changed files with 9 additions and 4 deletions

5
.lycheeignore Normal file
View File

@@ -0,0 +1,5 @@
# Exclude star-history API from link checking
# This service is intermittently unavailable (503 errors)
# but the link still works when the service is up
.*api\.star-history\.com.*