I’d love to be able to validate links to private projects (e.g. within markdown) are still valid. However, as far as I can tell there’s no way to validate this with either a personal access token, or a gitlab CI job token, meaning I can’t do this automatically in CI.
So for example, I want my markdown link checker to validate that https://gitlab.com/some-group/some-private-project
exists - even if I have access to this URL, my personal access token doesn’t, and attempting to connect using a private token (using any of the methods here) results in a redirect to the sign in page.
I know I can use the projects API to work out if the project exists, but that obviously requires a significant re-write of the URL. It’s even worse if you’re trying to link to a specific file in a project.
Any suggestions? Is there a cunning method to validate a URL that I’ve missed?