Home
> DevOps > Azure DevOps (ADO) | Pipeline failure | You need the Git ‘GenericContribute’ permission
Azure DevOps (ADO) | Pipeline failure | You need the Git ‘GenericContribute’ permission
While pushing the code to Repo using ‘Command Line Script’ task in ADO pipeline, got the following permission issue.
- Following is the script used in ‘Command Line Script’ task to push the code to main branch.
echo commit all changes
git config user.email "rajeevpentyala@live.com"
git config user.name "Rajeev Pentyala"
git checkout main
git add --all
git commit -m "solution init"
echo push code to new repo
git -c http.extraheader="AUTHORIZATION: bearer $(System.AccessToken)" push origin main
Reason for the issue:
- Account under which the ADO pipeline running, does not have required permissions to Push the code.
Fix:
- Go to Settings -> Repositories
- Under ‘Security’ tab, select the ‘ALM Build Service(User_Name)‘ and grant highlighted privileges.
🙂
Advertisement
Categories: DevOps
Tags: DevOps, GenericContribute, Permission
Comments (0)
Trackbacks (0)
Leave a comment
Trackback
Stats
- 1,606,873 hits
Join 408 other subscribers
Top Posts
- [Step by Step] Power Apps | Show pop ups in Canvas App
- Power Apps component framework (PCF) - Beginner guide
- Associate/Disassociate plugin messages in CRM
- [Step by Step] Create and call Global Custom API from Canvas App using Power Automate with Error Handling
- Power Platform - Pass json collection from Canvas App to Power Automate
- [Experimental Feature] Call Dataverse actions directly in Power Fx
- [Step by Step] Connecting to Azure SQL Server using OLEDB Connection from SSIS
- Power Automate Cloud Flow | 'Correct to include a valid reference' error
- [Code Snippet] Custom Workflow Activity with Input and Output Params
- [Step by Step] Postman tool with Microsoft Dataverse Web API