A Dependabot secret literally named 'PASSWORD' (or close variants like PASSWORD_1, PASSWORD_PROD) is a maintenance hazard: rotating it requires updating every dependent workflow because the name conveys no purpose. Use brand-specific names instead (NPM_REGISTRY_TOKEN, PYPI_DEPLOY_KEY, AZURE_CR_PUSH_PASSWORD). Generic password names are also a red flag for credential reuse across registries.
1. Go to Repository or Organization Settings -> Secrets and variables -> Dependabot. 2. Rename any secret named PASSWORD / PASSWORD_* to reflect its specific use (NPM_TOKEN, AWS_SECRET_ACCESS_KEY, etc.). 3. Update all referencing workflows.
{
"target": "GHDependabotSecret",
"if": {
"allOf": [
{
"resource": "GHDependabotSecret",
"property": "Name",
"operator": "notMatch",
"value": "^PASSWORD(_.*)?$"
}
]
},
"then": {
"effect": "Audit"
}
}
Copyright © DevOps Shield. Tous droits réservés. Politique de confidentialité | Politique de témoins | Conditions d'utilisation | v1.0.2