Skip to content

Commit

Permalink
Merge pull request #12 from kununu/fix-git-auth-issue
Browse files Browse the repository at this point in the history
Fix issue with git auth on push
  • Loading branch information
enkodr committed Aug 9, 2023
2 parents 3c3ccf9 + 6eed020 commit cc7704e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions git.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ func (ghApp *GitHubApp) Commit(msg string, user UserInfo) error {
func (ghApp *GitHubApp) Push() error {
err := ghApp.gitRepo.Push(&git.PushOptions{
RemoteName: "origin",
Auth: &http.BasicAuth{
Username: "github",
Password: ghApp.Auth.Token,
},
})
if err != nil {
return err
Expand Down

0 comments on commit cc7704e

Please sign in to comment.