Skip to content

Commit b9c0f26

Browse files
authored
Update markdown-link-check to ignore external links causing 403 in CI (#246)
* Update markdown-link-check to ignore external links causing 403 in CI * Apply wildcards on ignored links * Bump version of mlc to latest to gain --ignore-links arg * Do not warn on redirects from markdown-link-check action * Do not warn on redirects from markdown-link-check action * Update comment
1 parent 03e3094 commit b9c0f26

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/markdown-link-check.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@main
15+
1516
- name: Markup Link Checker (mlc)
16-
uses: becheran/[email protected]
17+
uses: becheran/[email protected]
18+
with:
19+
# Ignore external links that result in 403 errors during CI. Do not warn for redirects where we want to keep the vanity URL in the markdown or for GitHub links that redirect to the login.
20+
args: --ignore-links "https://www.anthropic.com/*,https://hackerone.com/anthropic-vdp/*" --do-not-warn-for-redirect-to "https://modelcontextprotocol.io/*,https://github.com/login?*" ./

.github/workflows/release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The following process is used when publishing new releases to NuGet.org:
3131
3. **Monitor the Release workflow**
3232
- After publishing the release, a workflow will begin for producing the release's build artifacts and publishing the NuGet package to NuGet.org
3333
- If the job fails, troubleshoot and re-run the workflow as needed
34-
- Verify the package version becomes listed on at [https://nuget.org/packages/ModelContextProtocol](https://nuget.org/packages/ModelContextProtocol)
34+
- Verify the package version becomes listed on at [https://nuget.org/packages/ModelContextProtocol](https://www.nuget.org/packages/ModelContextProtocol)
3535

3636
4. **Update the source to increment the version number**
3737
- Immediately after publishing a new release, the [`/src/Directory.Build.Props`](../../src/Directory.Build.props) file needs to be updated to bump the version to the next expected release version

0 commit comments

Comments
 (0)