Reputation: 57
Writing a pipeline that can push commits into a bitbucket git repository using the GitRepo resource but I keep running into an issue with it. The user and integration have admin privileges on the repo and it was successfully able to create the webhook on the repo but for some reason is getting rejected when trying to push?
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Upvotes: 2
Views: 135
Reputation: 361
When you add a GitRepo type resource for a repository, for some security reasons we only create deployKey/accessKey on the scm for the repository with read permissions. If you want to commit anything from the pipeline, then you can achieve the same by doing following steps:
int_<integration-name>_publicKey
and int_<integration-name>_privateKey
in your step to configure git.Useful documents for reference:
Upvotes: 1