Limit job authorization scope to current project for non-release pipelines. If enabled, scope of access for all pipelines reduces to the current project. Non-Release Pipelines can run with collection scoped access tokens unless this option is enabled. With this option enabled, you can reduce the scope of access for all non-release pipelines to the current project. Learn more: https://learn.microsoft.com/en-us/azure/devops/pipelines/security/secure-access-to-repos https://learn.microsoft.com/en-us/azure/devops/pipelines/process/access-tokens#job-authorization-scope
1. Go to Organization Settings. 2. Click on Pipelines -> Settings. 3. Turn 'On' the setting 'Limit job authorization scope to current project for non-release pipelines'.
{
"target": "ADOOrganizationPipelineSettings",
"if": {
"allOf": [
{
"resource": "ADOOrganizationPipelineSettings",
"property": "EnforceJobAuthScope",
"operator": "equals",
"value": true
}
]
},
"then": {
"effect": "Audit"
}
}
Copyright © DevOps Shield. All Rights Reserved. Privacy Policy | Cookie Policy | Terms and Conditions