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

Limit building pull requests from forked GitHub repositories

AZDO.1022HighAzure DevOpsPipelinesPreview 3.0

Part of Maester · Azure DevOps · Pipelines · All checks

Run this check
Invoke-Maester -TestId AZDO.1022

Azure DevOps pipelines should not automatically build on every pull request and commit from a GitHub repository.

Rationale: Code should not be automatically built from GitHub.

Enable the policy to stop building from GitHub repositories.

  1. Sign in to your organization.
  2. Choose Organization settings.
  3. Select Settings under Pipelines.
  4. Go to the section “Triggers” and turn on “Limit building pull requests from forked GitHub repositories”
Every attribute of this check
FieldValue
Test IDAZDO.1022
SeverityHigh
SuiteMaester
ProductAzure DevOps
FeaturePipelines
AreaEngineering systems
Resource typeTenant
User impactLow
Implementation costLow
MITRE ATT&CKT1677 Poisoned Pipeline Execution
PowerShell testTest-AzdoOrganizationTriggerPullRequestGitHubRepository
ServicesAzureDevOps
Learn morehttps://learn.microsoft.com/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#validate-contributions-from-forks