From dc9142f86c909b828fcf94a82b6fcfd952c07c87 Mon Sep 17 00:00:00 2001 From: Ruoqing He Date: Sat, 8 Feb 2025 17:49:48 +0800 Subject: [PATCH] ci: Introduce lychee to check links Use `lychee` to check availability of links in cloud-hypervisor. The urls explictly excluded in config file are manually checked. Signed-off-by: Ruoqing He --- .github/workflows/lychee.yaml | 16 ++++++++++++++++ .lychee.toml | 14 ++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/lychee.yaml create mode 100644 .lychee.toml diff --git a/.github/workflows/lychee.yaml b/.github/workflows/lychee.yaml new file mode 100644 index 000000000..dd3a372dc --- /dev/null +++ b/.github/workflows/lychee.yaml @@ -0,0 +1,16 @@ +name: Link Check (lychee) +on: + pull_request + +jobs: + link_check: + name: Link Check + runs-on: ubuntu-latest + steps: + - name: Code checkout + uses: actions/checkout@v4 + + - name: Link Availability Check + uses: lycheeverse/lychee-action@master + with: + args: --verbose --config .lychee.toml . diff --git a/.lychee.toml b/.lychee.toml new file mode 100644 index 000000000..e1dd90ead --- /dev/null +++ b/.lychee.toml @@ -0,0 +1,14 @@ +verbose = "info" + +exclude = [ + # Availability of links below should be manually verified. + # Page for intel SGX support, returns 403 while querying. + '^https://www.intel.com/content/www/us/en/developer/tools/software-guard-extensions/linux-overview.html', + # Page for intel TDX support, returns 403 while querying. + '^https://www.intel.com/content/www/us/en/developer/tools/trust-domain-extensions/overview.html', + # Page for TPM, returns 403 while querying. + '^https://trustedcomputinggroup.org/wp-content/uploads/PC-Client-Specific-Platform-TPM-Profile-for-TPM-2p0-v1p05p_r14_pub.pdf', + + # GitHub user smibarber referenced in `CREDITS.md` no longer exist + '^https://github.com/smibarber', +]