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.
🙂
Categories: DevOps
Tags: DevOps, GenericContribute, Permission
Comments (0)
Trackbacks (0)
Leave a comment
Trackback
Stats
- 1,484,152 hits
Translate
Categories
Top Posts
- Power Apps component framework (PCF) - Beginner guide
- [Code Snippet] Custom Workflow Activity with Input and Output Params
- Azure DevOps (ADO) | Pipeline failure | You need the Git 'GenericContribute' permission
- [Step by Step] Power Apps Portal - Configure Global Search
- Canvas App -Working with Bing Maps connector
- Associate/Disassociate plugin messages in CRM
- Useful JScript syntax's – ADX/Dynamics 365 Portals
- Set “Created On”,” Created By”, “Modified On”, “Modified By” fields using SDK/Data Import/Plug-in – Dynamics 365
- Azure DevOps (ADO) | Pipeline failure | Failed to connect to Dataverse
- [Step by Step] Dataverse | Connect Cloud flow with Service Principal (Application User)
Recent Posts
- General availability of Power Apps for Windows
- PCF | Using Fluent UI and React | Error during react installation
- Power Platform CLI | Pack and Unpack solution using map xml
- Power Platform CLI | Authenticate environment using device code
- Power Apps Maker Portal | Create tables with Table hub and new designer