How would you script automated secret rotation in CI/CD?
Rotating secrets in a CI/CD pipeline helps meet security requirements and reduce risk. Describe how you would automate secret rotation, the scripting language you’d use, and include a sample code snippet if possible.