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.
- Sign in to your organization.
- Choose Organization settings.
- Select Settings under Pipelines.
- Go to the section "Triggers" and turn on "Limit building pull requests from forked GitHub repositories"
Related linksβ
Test Metadataβ
| Field | Value |
|---|---|
| Test ID | AZDO.1022 |
| Severity | High |
| Suite | Maester |
| Category | Azure DevOps |
| PowerShell test | Test-AzdoOrganizationTriggerPullRequestGitHubRepository |
| Services | AzureDevOps |
| Learn more | https://learn.microsoft.com/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#validate-contributions-from-forks |
| Tags | AZDO, AZDO.1022 |
Sourceβ
- Test:
tests/Maester/AzureDevOps/Test.AZDO.1022.ps1 - Documentation:
tests/Maester/AzureDevOps/Test.AZDO.1022.md
