Skip to content
3.0 preview2.3.0 stable

These docs describe the preview. Pick the version you run and every page marks what it doesn't have yet. Get the preview →
Maester 2.x docs (archived) →

Sponsor

Protect access to repositories in YAML pipelines

AZDO.1018HighAzure DevOpsPipelinesPreview 3.0

Part of Maester · Azure DevOps · Pipelines · All checks

Run this check
Invoke-Maester -TestId AZDO.1018

Access to repositories in YAML pipelines should apply checks and approval before granting access.

Rationale: To enhance security, consider separating your projects, using branch policies, and adding more security measures for forks. Minimize the scope of service connections and use the most secure authentication methods.

Enable the policy to apply checks and approvals.

  1. Sign in to your organization.
  2. Choose Organization settings.
  3. Under the Pipelines section choose Settings.
  4. In the General section, toggle on “Protect access to repositories in YAML pipelines”.

Results: Apply checks and approvals when accessing repositories from YAML pipelines. Also, generate a job access token that is scoped to repositories that are explicitly referenced in the YAML pipeline.

Every attribute of this check
FieldValue
Test IDAZDO.1018
SeverityHigh
SuiteMaester
ProductAzure DevOps
FeaturePipelines
AreaEngineering systems
Resource typeTenant
User impactMedium
Implementation costMedium
MITRE ATT&CKT1550.001 Application Access Token, T1213.003 Code Repositories
Supports controlsnist-800-53-r5:AC-3, nist-800-53-r5:AC-6
PowerShell testTest-AzdoOrganizationProtectAccessToRepository
ServicesAzureDevOps
Learn morehttps://learn.microsoft.com/azure/devops/pipelines/security/overview?view=azure-devops#restrict-project-repository-and-service-connection-access