-
Notifications
You must be signed in to change notification settings - Fork 125
Validate links of private github repositories #351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am stumbling on the same issue. We have links in our release documentation that point to releases but the link checker fails with a 404 even in the same repo where the link checker is running. Currently i see no way on how we could authenticate to GitHub so links can be validated. A PAT token in my case is a route I am hesitate to take as this is personally bound. |
Especially when it comes to validating Markdown files with links to private GitHub repositories, I think a common usage of markdown-link-check is in a GitHub Actions workflow. GitHub Actions provides an automatically generated access token for use in workflows: It is true that this token only provides access to the repository in which the workflow is running, so this would not be sufficient to allow avoid false positives from markdown-link-check for links to other private repositories. However, it will be useful in cases where there are only links to the one private repository. |
Instead of using a PAT, can't the linter be registered as a GitHub app so you can check links to private GitHub repositories? This would solve the problem with the PAT as well as the GITHUB_TOKEN from the repository. |
This issue has been marked as stale because it has been open 60 days with no activity. It will be closed in 30 days unless the stale label is removed or someone adds a comment. |
Unstale FYI: @WillGibson |
@volker-raschek Are you able to elaborate on how this approach would work? |
Uh oh!
There was an error while loading. Please reload this page.
Hi @tcort,
I've running the markdown-link-checker as container image in my CI. The README.md contains some links to a private GitHub repository and throws an 404 status code, because the application tries to access unauthorized the git repository.
How can be defined a PAT to make an access possible? Alternatively, is a .netrc file supported?
https://www.gnu.org/software/inetutils/manual/html_node/The-_002enetrc-file.html
Volker
The text was updated successfully, but these errors were encountered: