-
Notifications
You must be signed in to change notification settings - Fork 355
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
fix: Use GH_TOKEN token for protected branch #1504
Conversation
Allow continuing to use GitHub Secret as token for protected branch.
@mcking65 or @michael-n-cooper with this, the GitHub actions push should still work to the protected branches here if you set a For the forks, it falls back to the regular built-in token if they haven't set the variable, or protected the |
I will need @michael-n-cooper to create the secret with the token; it requires a repo owner. |
I've created the GH_TOKEN secret. |
Thanks @michael-n-cooper! |
@michael-n-cooper sorry, I think the token might be wrong. Can you try doing this to update the GH_TOKEN value:
|
Sorry, I misunderstood what should be the secret. I gave it a random value. I updated it to be the value of the GH_TOKEN for the repository, and it appeared the job succeeded. |
Awesome, thanks for the patience @michael-n-cooper, and sorry for the missing instructions at the start |
Thank you @nschonni and @michael-n-cooper!! |
Allow continuing to use GitHub Secret as token for protected branch.