Skip to main content
Version: 3.0.0-preview

AZDO.1018 - Protect access to repositories in YAML pipelines.

Overview​

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.

Remediation action​

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.

Test Metadata​

FieldValue
Test IDAZDO.1018
SeverityHigh
SuiteMaester
CategoryAzure DevOps
PowerShell testTest-AzdoOrganizationProtectAccessToRepository
ServicesAzureDevOps
Learn morehttps://learn.microsoft.com/azure/devops/pipelines/security/overview?view=azure-devops#restrict-project-repository-and-service-connection-access
TagsAZDO, AZDO.1018

Source​