Enable shell tasks args sanitizing. When this is enabled, argument parameters for built-in shell tasks are validated to prevent additional shell commands from being executed. Learn more: https://learn.microsoft.com/en-us/azure/devops/pipelines/security/inputs#shellTasksValidation
1. Navigate to Organization Settings. 2. Open the Settings link under Pipelines. 3. Turn 'On' the setting 'Enable shell tasks arguments validation'.
{
"target": "ADOOrganizationPipelineSettings",
"if": {
"allOf": [
{
"resource": "ADOOrganizationPipelineSettings",
"property": "EnableShellTasksArgsSanitizing",
"operator": "equals",
"value": true
}
]
},
"then": {
"effect": "Audit"
}
}
Copyright © DevOps Shield. All Rights Reserved. Privacy Policy | Cookie Policy | Terms and Conditions