You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I deploy using gh-pages, I want to deploy as a user that is not the globally figured user(frzyc), since I don't have access to the repo as my global user. However, I seem to have trouble getting the user overwrite to work, either programmatically, or using the CLI.
remote: Permission to DevTwo/pages.git denied to frzyc.
fatal: unable to access 'https://github.com/DevTwo/pages/': The requested URL returned error: 403
ProcessError: remote: Permission to DevTwo/pages.git denied to frzyc.
fatal: unable to access 'https://github.com/DevTwo/pages/': The requested URL returned error: 403
at ChildProcess.<anonymous> (...\node_modules\gh-pages\lib\git.js:42:16)
at ChildProcess.emit (node:events:390:28)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {
code: 128
}
The text was updated successfully, but these errors were encountered:
@frzyc I had the same issue with a fresh new repository. I have multiple older repositories which worked just fine.
I was able to get the deployment working after checking a setting in repository settings from Settings - Actions - General - Workflow permissions, check Read and write permissions and click Save.
If the radio box above is disabled, e.g. in organization repositories, you can defined following in the workflow file:
When I deploy using gh-pages, I want to deploy as a user that is not the globally figured user(frzyc), since I don't have access to the repo as my global user. However, I seem to have trouble getting the user overwrite to work, either programmatically, or using the CLI.
in my
package.json
:Or when I try to deploy using code:
The text was updated successfully, but these errors were encountered: