-
-
Notifications
You must be signed in to change notification settings - Fork 320
Pushing to repo throws "fatal" error #594
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
Comments
Hi, do you know if this is just some of your users, or is this happening for everyone? Also, do you know if they were using the When you're running The consumers of your action configure a jobs:
publish:
steps:
- uses: EndBug/add-end-commit
...other config...
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} Your action can bind that token into any request it makes through const git = simpleGit({
baseDir,
config: {
'credential.https://github.com/.helper': `"! f() { echo username=x-access-token; echo password=$GITHUB_TOKEN; };f"`
}
}); (based on the advice given in git-lfs/git-lfs#4031 (comment) - I've not tested this, but do let me know if it helps) |
Hi, thanks for your reply!
I'll try adding that credential helper and see if that solves their problem 👍🏻 |
I have a question about the way you're using the Also, is the helper supposed to show up in the git config? Because it doesn't at the moment // code
debug(
'> Current git config\n' +
JSON.stringify((await git.listConfig()).all, null, 2)
) ##[debug]> Current git config
##[debug]{
##[debug] "filter.lfs.clean": "git-lfs clean -- %f",
##[debug] "filter.lfs.smudge": "git-lfs smudge -- %f",
##[debug] "filter.lfs.process": "git-lfs filter-process",
##[debug] "filter.lfs.required": "true",
##[debug] "core.repositoryformatversion": "0",
##[debug] "core.filemode": "true",
##[debug] "core.bare": "false",
##[debug] "core.logallrefupdates": "true",
##[debug] "remote.origin.url": "https://github.com/EndBug/temp-action-test",
##[debug] "remote.origin.fetch": "+refs/heads/*:refs/remotes/origin/*",
##[debug] "gc.auto": "0",
##[debug] "http.https://github.com/.extraheader": "AUTHORIZATION: basic ***",
##[debug] "branch.add-and-commit.remote": "origin",
##[debug] "branch.add-and-commit.merge": "refs/heads/add-and-commit",
##[debug] "user.email": "[email protected]",
##[debug] "user.name": "EndBug"
##[debug]} |
You're right, there's an error in my previous post, you should supply an array of strings
Supplied in that way you should see the credentials in the config. |
I've tried your fix and one of the users tested it, and said that it didn't solve the problem. However, they found out that the issue was in Thanks a lot for your help :) |
Open a terminal, do a git pull, you'll be prompted to re-authenticate. Once done, try it again from your app. This happens when username/pass changes |
Hi, I'm using your package in a GitHub action, add-and-commit, and recently some users reported that they're having issues when it comes to pushing the commit to the repo. The error shown is the following:
What confuses me is the fact that they're perfectly able to fetch and pull from the repo, but they can't push it. I have never been encountered this issue in any of my workflows, but even looking at theirs I can't figure out what's wrong.
I thought that the error could be caused by a wrong git URL, but then the action would fail when pulling and fetching.
It could also be a wrong username, but they were all using my default option, which uses the name and email directly from the GitHub actor env variable, provided by GitHub itself.
This is how I implemented it:
(code link)
Do you have any idea of what could be going wrong?
Ref EndBug/add-and-commit#146
The text was updated successfully, but these errors were encountered: