Every deployment environment (e.g., 'production', 'staging', 'qa') should have a non-empty, descriptive name. Environments without names are not addressable from workflows and break the deployment-targeting model.
1. Go to Repository Settings -> Environments. 2. Open each environment. 3. Ensure the environment name is set and descriptive (e.g., 'production', 'staging').
{
"target": "GHEnvironment",
"if": {
"allOf": [
{
"resource": "GHEnvironment",
"property": "Name",
"operator": "notEquals",
"value": ""
}
]
},
"then": {
"effect": "Audit"
}
}
Copyright © DevOps Shield. All Rights Reserved. Privacy Policy | Cookie Policy | Terms and Conditions | v1.0.2