Skip to content
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

How to verify links to other private repos #108

Open
dvdstelt opened this issue Jun 30, 2021 · 8 comments
Open

How to verify links to other private repos #108

dvdstelt opened this issue Jun 30, 2021 · 8 comments
Labels
question Further information is requested

Comments

@dvdstelt
Copy link

I have 2 private repos with documentation. RepositoryA has a .md file with a link to a .md file in RepositoryB.
GitHub actions in RepositoryA by default doesn't have access to RepositoryB. Is there a way to achieve this?

@gaurav-nelson
Copy link
Owner

Thank you @dvdstelt

I'm not 100% sure if it will work or if there are any security implications of using this approach.

@gaurav-nelson
Copy link
Owner

@dvdstelt Is this still an issue? Were you able to address it?

  • If yes, can you share the configuration? I can maybe add it as an example in the README.

@gaurav-nelson gaurav-nelson added the question Further information is requested label Aug 19, 2021
@dvdstelt
Copy link
Author

It needs to be a code change, not possible via config alone, from what I can see.

@gaurav-nelson
Copy link
Owner

@dvdstelt when you say:

RepositoryA has a .md file with a link to a .md file in RepositoryB

Is it a hyperlink?

@dvdstelt
Copy link
Author

It is indeed a hyperlink. In my case to a different repo in within the same organization.

@fharper
Copy link

fharper commented Dec 10, 2021

I would love to see that feature!

@khanguslee
Copy link

Any updates on your end @gaurav-nelson ?

It looks like you can't use the value ${{ secrets.GITHUB_TOKEN }} inside the .json file for the markdown link config file. I would like to have this feature as our README.md file in our private repo, links to documentation found on our wiki page in our private repo. We also have the same issue where we reference other private repositories too.

@gbmarc1
Copy link

gbmarc1 commented Oct 18, 2022

Hi!
I would also be in need of that feature! My organization links https://github.com/<organization> are all failing.
I feel like this could be resolved by providing a template for the mlc_config.json to resolve the github_token in the Authorization header.

{
  "httpHeaders": [
    {
      "urls": ["https://github.com/<organization>"],
      "headers": {
        "Authorization": "Bearer ${{ secrets.GITHUB_TOKEN }}"
      }
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants