-
Notifications
You must be signed in to change notification settings - Fork 31
trigger gh webserver from gh-pages with default gh action GITHUB_TOKEN, not bespoke PAT #1
Comments
from gh:
my response / latest experience:
|
@helaili @BryanSchuetz @shalzz you guys also seemed to have implemented deploying assets to github pages from within GitHub actions (in fact, I stole your git incantations). I noticed that you guys also used Did I get this right? Did you face the same limitation as well? |
👋 @maxheld83 - there is indeed a difference of behavior when using Personal Access Tokens and OAuth Tokens, which the I'm planning on investigating this deeper but I'm afraid this is not on top of todo list. |
@maxheld83 Yes that's correct. In fact this is what I explicitly mention in the README. For posterity this is the complete explanation I got from the Github Staff:
|
We’ve found that using a repository deployment key and using an ssh remote also works and is safer since it’s scoped to the repo only. |
As @helaili mentions—using
|
Use a personal access token instead of the provided Actions token. See maxheld83/ghpages#1.
Use a personal access token instead of the provided Actions token. See maxheld83/ghpages#1.
@maxheld83 Thanks for documenting this I spent a ton of time trying to figure out why my environment was not building! |
Did you try See https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#http-based-git-access-by-an-installation - I know this is for installations, but I think actions are sharing some implementation logic or something |
@gr2m I didn't get to give that a go. I will definitely give that a go in the next few weeks! |
I just tested it and it works: https://github.com/gr2m/ghpages/tree/gh-pages Pull request incoming |
What kind of permissions does the PAT need in order to be able to push? There is no checkbox there that says "push_rights". |
repo |
closing this in favor of #18 |
* Export GITHUB_TOKEN to env also * Enable deployment of branch for testing purpose * Provide TOKEN as maxheld83/ghpages#1 (comment) * Disable deployment for branches again
No description provided.
The text was updated successfully, but these errors were encountered: