Skip to content
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

Unable to push the code to github #113

Open
omcaaaar opened this issue Oct 3, 2023 · 5 comments
Open

Unable to push the code to github #113

omcaaaar opened this issue Oct 3, 2023 · 5 comments

Comments

@omcaaaar
Copy link

omcaaaar commented Oct 3, 2023

Hi,

What changes do I have to make in order to push the DevOpsGPT generated code to my github?

I have made changes in env.yaml file as per following:
DEVOPS_TOOLS: "github"
GIT_ENABLED: true
GIT_URL: "https://github.com"
GIT_API: "https://api.github.com"
GIT_TOKEN:
GIT_USERNAME:
GIT_EMAIL:

When I click on "submit code", it tries to push the code to kuafuai's repo and gives following error:
"Failed to push code. In the ./workspace/19/kuafuai/template_freestyleApp directory. git push failed."

@booboosui
Copy link
Collaborator

Can you provide a python terminal log?

@omcaaaar
Copy link
Author

omcaaaar commented Oct 5, 2023

MicrosoftTeams-image (3)

@booboosui
Copy link
Collaborator

It seems that your token is incorrect. You can create the token here: https://github.com/settings/tokens. Be careful to give the token read and write permission to the warehouse

In addition, the default repository is stored in the kuafuai organization, you do not have permission to push code to this repository, you can fork the code to your own repository(https://github.com/kuafuai/template_freestyleApp), and modify the repository path in the application breeding to make it effective

@Shahabmustafa
Copy link

Please create a new token
Personal Access Tokens > Generate New Token > Token Scopes > Copy and Store the Token Securely > Use the Token

Remember, personal access tokens are sensitive and grant access to your GitHub account or repositories, so ensure they are handled securely and with care. Rotate or revoke tokens that are no longer needed to maintain account security.

@Manishgithub2021
Copy link

I am unable to push code to my repo,and its always trying to push to kuafuai/template path .
Where to make changes ,so that it can be pushed to ,whatever github/gitlab path given in env.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants