From eb651bc4a6144f36a1493979c04bca4bbb970a37 Mon Sep 17 00:00:00 2001 From: Karim <98668332+khadni@users.noreply.github.com> Date: Sat, 10 Feb 2024 14:20:28 +0100 Subject: [PATCH] Add a user agent --- .github/workflows/external-links-checker-lychee.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/external-links-checker-lychee.yml b/.github/workflows/external-links-checker-lychee.yml index 105abed8811..e727ed49b09 100644 --- a/.github/workflows/external-links-checker-lychee.yml +++ b/.github/workflows/external-links-checker-lychee.yml @@ -27,9 +27,10 @@ jobs: '/data/**/*.mdx' \ '/data/**/*.astro' \ '/data/**/*.html' \ - --exclude '(^(file://)|http://127.0.0.1:\d+|http://localhost:\d+)' \ + --exclude '(^(file://)|http://127.0.0.1:\d+|https://127.0.0.1:\d+|http://localhost:\d+|https://localhost:\d+)' --accept '403, 429' \ - --format markdown | tee -a $GITHUB_STEP_SUMMARY + --format markdown \ + --user-agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3" | tee -a $GITHUB_STEP_SUMMARY EXIT_CODE=${PIPESTATUS[0]} echo "Exit code: $EXIT_CODE" if [ "$EXIT_CODE" != "0" ]; then