Skip to main content
Version: 3.0.0-preview

AZDO.1022 - Limit building pull requests from forked GitHub repositories.

Overview​

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.

Remediation action​

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"

Test Metadata​

FieldValue
Test IDAZDO.1022
SeverityHigh
SuiteMaester
CategoryAzure DevOps
PowerShell testTest-AzdoOrganizationTriggerPullRequestGitHubRepository
ServicesAzureDevOps
Learn morehttps://learn.microsoft.com/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#validate-contributions-from-forks
TagsAZDO, AZDO.1022

Source​