Azure Devops PR Automation Requires Generic Contribute
|May 12, 2021||Azure Devops PR Automation Requires Generic Contribute|
|Jan 14, 2021||Leverage Renovate for Easy Dependency Updates|
Big fan of renovate for terraform dependency management.
Ran into some complications with restarting an onboarding with Whitesource Renovate in Azure DevOps Repos and the Azure Pipeline automation. I’ve run into this before, so logging this for my sanity.
- If you failed to onboard with Azure DevOps, you can’t rename the PR like in GitHub to simplify restarting the onboarding process.
- Instead, delete the
renovate.jsonfile and commit to your default branch.
- Then re-add and get the
renovate.jsoncommitted back to your default branch.
- Run your Azure DevOps Pipeline to trigger the dependency assessment.
- If you didn’t add the project build service account to your repo with
Contribute to Pull Requests,
Force Push(to allow force update of branches it creates), and
Go to your repository security settings (in this case I’m adding to all to simplify, but you can do on a repo by repo basis if you enjoy tedium):
Then in the search type your project name and you should see a
PROJECTNAME\Build Service (PROJECTNAME) show up.
If you are using a custom service account with on-premise agents instead of hosted, then adjust your approach accordingly.