Skip to content

Commit

Permalink
Regard HTTP 403 links as "alive", for now (dmvassallo#266)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
EliahKagan authored Dec 4, 2023
1 parent 2bc928c commit d7b07d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/markdown-links-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"aliveStatusCodes": [200, 403]
}
2 changes: 2 additions & 0 deletions .github/workflows/markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
uses: actions/checkout@v4
- name: Check Markdown links
uses: gaurav-nelson/[email protected]
with:
config-file: .github/workflows/markdown-links-config.json

markdownlint-cli2:
name: Lint
Expand Down

0 comments on commit d7b07d4

Please sign in to comment.