Closed cwboden closed 1 year ago
Hi @cwboden
Thanks for the issue, for your case, you should follow below steps:
with.repository
to your public repository.GH_TOKEN
in your public repository.with.token
to ${{ secrets.GH_TOKEN }}
or set with.ssh_private_key
to ${{ secrets.SSH_PRIV_KEY }}
.Thanks & Regards
Thanks for the prompt response! Looks like this one was user error -- I must have misconfigured my PAT token so that it didn't have the correct permissions. I walked through your steps above and everything is working now. Appreciate the help!
Use Case
I am attempting to use
jekyll-deploy-actions
for the following use case:with.repository
argument to push the pages bundle to a public repository that can then publish via GitHub pages for freeWorkflow Definition
Here is the definition of my GitHub workflow (from the private repository), which is configured according to the README:
When this Workflow runs, it completes the build / bundling process successfully, but fails when attempting to push to my public repo:
I initially thought this was a problem with the
secrets.GITHUB_TOKEN
, so I also added a PAT to the repository under the secretGH_TOKEN
(as outlined in the README):However, I end up with the same error :cry: I'm curious if the
with.repository
parameter is only supported by SSH authentication?Other Troubleshooting Attempts
I also tried a few other things, such as replacing the
with.token
parameter with$GH_TOKEN
(though then the build step cannot complete), using a Legacy GitHub PAT rather than the granular ones, and by removing the authorization headers, according to this Stack Overflow post.None of these have helped, though I can update this section as I continue troubleshooting the problem. My next step will be to take a look at how
GH_TOKEN
is used within the plugin source code. Perhaps I'm missing something there.