-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.04 KB
/
link-check.yml
File metadata and controls
39 lines (34 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: link-check
# Lychee scans every markdown link in this repo so dead URLs surface
# before users hit them. Runs on PR + push to main + a weekly cron so
# rot is caught even between releases.
#
# Non-blocking on findings (matches the gitleaks workflow's policy) —
# branch protection gates that the scan ran; results appear in the
# workflow summary so an operator can decide whether to fix or accept.
on:
pull_request:
push:
branches: [main]
schedule:
- cron: '0 3 * * 1' # Mondays 03:00 UTC
workflow_dispatch:
permissions:
contents: read
jobs:
lychee:
name: lychee (link check)
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Run lychee
uses: lycheeverse/lychee-action@8646ba30535128ac92d33dfc9133794bfdd9b411 # v2.8.0
with:
args: >-
--no-progress
--max-concurrency 8
--exclude-mail
--accept 200,206,403,429
'**/*.md'
fail: false