From d7b07d4ce7f13446c4a8547ccac76db8d7c21842 Mon Sep 17 00:00:00 2001 From: Eliah Kagan Date: Sun, 3 Dec 2023 22:14:24 -0600 Subject: [PATCH] Regard HTTP 403 links as "alive", for now (#266) This reconfigures markdown-link-check to treat both HTTP 200 and HTTP 403 status codes as meaning the link is not broken. This has a high risk of false detection. It is a temporary workaround for the problem of pages on the OpenAI website (linked to from the readme) returning HTTP 403 when accessed from GitHub Actions runners. --- .github/workflows/markdown-links-config.json | 3 +++ .github/workflows/markdown.yml | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 .github/workflows/markdown-links-config.json diff --git a/.github/workflows/markdown-links-config.json b/.github/workflows/markdown-links-config.json new file mode 100644 index 00000000..d6f87fc5 --- /dev/null +++ b/.github/workflows/markdown-links-config.json @@ -0,0 +1,3 @@ +{ + "aliveStatusCodes": [200, 403] +} diff --git a/.github/workflows/markdown.yml b/.github/workflows/markdown.yml index 60a2a8e4..f10d6c29 100644 --- a/.github/workflows/markdown.yml +++ b/.github/workflows/markdown.yml @@ -15,6 +15,8 @@ jobs: uses: actions/checkout@v4 - name: Check Markdown links uses: gaurav-nelson/github-action-markdown-link-check@1.0.15 + with: + config-file: .github/workflows/markdown-links-config.json markdownlint-cli2: name: Lint