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,556,656 hits
Tweets
- RT @ManuelaPichler_: I suffered a concussion last week, and I'm so glad to see this video is actually REAL and not just something my brain… 2 hours ago
- RT @TaikiYoshidaEN: Awesome to see we have a shiny new public facing website for Power CAT! 😻😻😻 microsoft.github.io/powercat/ #PowerApps #PowerA… 4 days ago
- RT @ravichada: 🎥 The demo video is ready now. Do check out the Dataverse Security Roles risk assessment tool in action. Leave a comment or… 4 days ago
- RT @ManuelaPichler_: CoE kit but make it more fluent-y #comingsoon https://t.co/kcSzPqwZhM 4 days ago
- New Blog Post: C# Basics | Why Interfaces rajeevpentyala.com/2023/01/07/c-b… 3 weeks ago
Join 400 other subscribers
Top Posts
- Power Apps component framework (PCF) - Beginner guide
- Auto generate new GUID for ‘uniqueidentifier’ column in SQL Table
- [Code Snippet] Custom Workflow Activity with Input and Output Params
- Power Apps - 'Environment Variables' and their usage in Canvas Apps
- Azure DevOps (ADO) | Pipeline failure | You need the Git 'GenericContribute' permission
- [Step by Step] Power Apps Portal - Configure Global Search
- Associate/Disassociate plugin messages in CRM
- [Step by Step] Connecting to Azure SQL Server using OLEDB Connection from SSIS
- Canvas App Import Failure | CanvasAppEnvironmentMismatch error
- C# - SQL - Bulk Insert records from Data Table and CSV