Status badges are private. Anonymous users can access the status badge API for all pipelines unless this option is enabled. Learn more: https://learn.microsoft.com/en-us/azure/devops/pipelines/create-first-pipeline?#add-a-status-badge-to-your-repository
1. Go to Organization Settings. 2. Click on Pipelines -> Settings. 3. Turn 'On' the setting 'Disable anonymous access to badges'.
{
"target": "ADOOrganizationPipelineSettings",
"if": {
"allOf": [
{
"resource": "ADOOrganizationPipelineSettings",
"property": "StatusBadgesArePrivate",
"operator": "equals",
"value": true
}
]
},
"then": {
"effect": "Audit"
}
}
Copyright © DevOps Shield. All Rights Reserved. Privacy Policy | Cookie Policy | Terms and Conditions