ci: replace unmaintained markdown link checker (#15424)

The old one was flaking a bunch and blocking PRs. This is the one
recommended by the maintainer of the old.
This commit is contained in:
Ethan
2024-11-07 22:30:43 +11:00
committed by GitHub
parent 7318cc0e34
commit 6e18742ad3
4 changed files with 14 additions and 42 deletions
+9
View File
@@ -0,0 +1,9 @@
dirs:
- docs
ignorePatterns:
- pattern: "://localhost"
- pattern: '://.*.?example\\.com'
- pattern: "github.com/<your_github_handle>"
- pattern: "mailto:"
aliveStatusCodes:
- 200
-35
View File
@@ -1,35 +0,0 @@
{
"ignorePatterns": [
{
"pattern": "://localhost"
},
{
"pattern": "://.*.?example\\.com"
},
{
"pattern": "developer.github.com"
},
{
"pattern": "docs.github.com"
},
{
"pattern": "github.com/<your_github_handle>"
},
{
"pattern": "imgur.com"
},
{
"pattern": "support.google.com"
},
{
"pattern": "mailto:"
},
{
"pattern": "tailscale.com"
},
{
"pattern": "wireguard.com"
}
],
"aliveStatusCodes": [200, 0]
}
+4 -6
View File
@@ -26,15 +26,13 @@ jobs:
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- name: Check Markdown links
uses: gaurav-nelson/github-action-markdown-link-check@d53a906aa6b22b8979d33bc86170567e619495ec # v1.0.15
uses: umbrelladocs/action-linkspector@fc382e19892aca958e189954912fe379a8df270c # v1.2.4
id: markdown-link-check
# checks all markdown files from /docs including all subfolders
with:
use-quiet-mode: "yes"
use-verbose-mode: "yes"
config-file: ".github/workflows/mlc_config.json"
folder-path: "docs/"
file-path: "./README.md"
reporter: github-pr-review
config_file: ".github/.linkspector.yml"
fail_on_error: "true"
- name: Send Slack notification
if: failure() && github.event_name == 'schedule'
+1 -1
View File
@@ -27,7 +27,7 @@ using Coder's [JFrog Xray Integration](https://github.com/coder/coder-xray).
[permission](https://jfrog.com/help/r/jfrog-platform-administration-documentation/permissions)
for the repositories you want to scan.
1. Create a Coder [token](../../reference/cli/tokens_create.md#tokens-create)
with a user that has the [`owner`](../users#roles) role.
with a user that has the [`owner`](../users/index.md#roles) role.
1. Create Kubernetes secrets for the JFrog Xray and Coder tokens.
```bash