Automatically enable Advanced Security for new repositories. New repositories in this project will be initialized with Advanced Security enabled by default. Advanced Security can be disabled on a repository at any time. Advanced Security is billed based on the number of unique active committers across all enabled repositories in your subscription. Learn more: https://learn.microsoft.com/en-us/azure/devops/repos/security/configure-github-advanced-security-features
1. Go to Project Settings. 2. Select Repos -> Repositories. 3. Select the Settings tab. 4. Turn 'On' the setting 'Automatically enable Advanced Security for new repositories'.
{
"target": "ADOProjectAdvancedSecurityEnablement",
"if": {
"allOf": [
{
"resource": "ADOProjectAdvancedSecurityEnablement",
"property": "EnableOnCreate",
"operator": "equals",
"value": true
}
]
},
"then": {
"effect": "Audit"
}
}
Copyright © DevOps Shield. All Rights Reserved. Privacy Policy | Cookie Policy | Terms and Conditions