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
Unable to checkout child imports with github actions #20
Comments
There's something going on with how GitHub does authentication for private repos. My company has an instance of Azure Devops for remotes and passing the access token in the header of the git clone works in our pipeline (action) but apparently doesn't for GitHub. I'll need to look into this to see if I can fix this on my end. The traceroute line that is helpful for you is the one Git sent to stderr.
|
@matthewmucker-vizio, you might be able to use gha-git-credentials with the |
@matthewmucker-vizio, could you try to use the |
From the page you linked: " The token's permissions are limited to the repository that contains your workflow." Since the purpose of mkdocs-multirepo-plugin is to use documentation in other repositories, I don't think this is the answer. I'm still reading up on this, but I think I somehow need to specify a user name along with the PAT I'm trying to use for authentication. I haven't done much experimenting since I opened this issue. |
Did some testing. If the url in the git clone command in script/sparse_clone.sh could be changed from: git clone https://github.com/org/repo to: git clone https://<-PAT from environment variable->@github.com/org/repo That should work. It would mean, I suppose, checking for the presence of an environment variable and if found, splitting the url after the protocol specifier and inserting the PAT. I don't know the best place in the code to do that though. |
fixed with pull request #22. |
I am creating a 'documentation' repo in github which hosts a stub mkdocs.yml file under which mkdocs-multirepo-plugin should build documentation from other repos. The .yml is:
When I run
mkdocs build
from my machine, it works.I want to trigger the build of docs from a github action. Per the documentation, I added github personal access token (PAT) to the repo secrets and included that in my workflow. The workflow
.yml
is:The output of the 'Run mkdocs' step is:
What am I doing wrong?
The text was updated successfully, but these errors were encountered: