diff --git a/.github/linters/.check-markdown-links.json b/.github/linters/.check-markdown-links.json deleted file mode 100644 index c3789718..00000000 --- a/.github/linters/.check-markdown-links.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "ignorePatterns": [ - { - "pattern": "^https://dotnetbinaries.blob.core.windows.net/dockerassets" - }, - { - "pattern": "^https://github.com/dotnet/release/blob/main/.github/ISSUE_TEMPLATE/dotnet-fx-docker-servicing-release.md" - }, - { - "pattern": "^https://mcr.microsoft.com/v2/\\{\\{REPO\\}\\}/tags/list" - }, - { - "pattern": "^https://github.com/microsoft/dotnet-framework-docker/blob/main/README.\\{\\{SHORT_REPO\\}\\}.md#full-tag-listing" - } - ] -} diff --git a/.github/linters/.linkspector.yml b/.github/linters/.linkspector.yml new file mode 100644 index 00000000..d69ed7ca --- /dev/null +++ b/.github/linters/.linkspector.yml @@ -0,0 +1,12 @@ +aliveStatusCodes: + - 200 + - 406 +dirs: + - . + - .github +excludedDirs: + - eng/readme-templates +ignorePatterns: + - pattern: "^https://dotnetbinaries.blob.core.windows.net/dockerassets" + - pattern: "^https://github.com/dotnet/release/blob/main/.github/ISSUE_TEMPLATE/dotnet-fx-docker-servicing-release.md" +useGitIgnore: true diff --git a/.github/workflows/check-markdown-links.yml b/.github/workflows/check-markdown-links.yml index 225f3ed8..681caf35 100644 --- a/.github/workflows/check-markdown-links.yml +++ b/.github/workflows/check-markdown-links.yml @@ -17,8 +17,8 @@ jobs: uses: actions/checkout@v4 - name: Check markdown links - uses: gaurav-nelson/github-action-markdown-link-check@v1 + uses: umbrelladocs/action-linkspector@v1 with: - config-file: .github/linters/.check-markdown-links.json - use-quiet-mode: 'yes' - use-verbose-mode: 'no' + config_file: .github/linters/.linkspector.yml + fail_on_error: true + filter_mode: nofilter