AZDO.1015 - Limit variables that can be set at queue time.
Overviewโ
User-defined variables should not be able to override system variables or variables not defined by the pipeline author.
Rationale: Only those variables explicitly marked as "Settable at queue time" can be set by user.
Remediation actionโ
Enable the policy to limit variables that can be set at queue time.
- Sign in to your organization.
- Choose Organization settings.
- Under the Pipelines section choose Settings.
- In the General section, toggle on "Limit variables that can be set at queue time".
Results: Only those variables explicitly marked as "Settable at queue time" can be set at queue time.
Related linksโ
Test Metadataโ
| Field | Value |
|---|---|
| Test ID | AZDO.1015 |
| Severity | High |
| Suite | Maester |
| Category | Azure DevOps |
| PowerShell test | Test-AzdoOrganizationLimitVariablesAtQueueTime |
| Services | AzureDevOps |
| Learn more | https://learn.microsoft.com/azure/devops/pipelines/security/inputs?view=azure-devops#limit-variables-that-can-be-set-at-queue-time |
| Tags | AZDO, AZDO.1015 |
Sourceโ
- Test:
tests/Maester/AzureDevOps/Test.AZDO.1015.ps1 - Documentation:
tests/Maester/AzureDevOps/Test.AZDO.1015.md
