Skip to content

Minimum Access Requirements
for CI/CD Pipelines - Overview

One of best practices is starting with the built-in Contributor role as a template, then subtract what isn’t needed and add what Contributor misses. Microsoft provides tools to fetch a role definition. For example, you can get the JSON for Contributor and modify it. In practice, you might create two roles for pipelines: one “Deployment Contributor” that has all resource actions (like Contributor minus RBAC), and another “Access Manager” role with just Microsoft.Authorization/roleAssignments/*

List of References (Click to expand)
graph TD A[Dev Platform - VS/VSC] --> B[Code Platform - GHE/GHES] B --> C[AI Productivity - GHC] B --> D[Security, Code Scanning, Secret Scanning - GHAS] B --> E[Quality & Analysis - GHCQ] A --> F[Boards + Pipelines - ADO] F --> G[CI/CD + Testing - GHA]

For example: How linking from Resource Manager and CI/CD to Microsoft Entra ID is the key to having an end-to-end governance model.

image

image

Note

Azure DevOps repos / GitHub repos:

image

From End-to-end governance in Azure when using CI/CD