Description
When running cre init inside an existing CRE project to add a new workflow, the command overwrites the existing project secrets, removing all previously defined secrets from secrets.yaml.
This behavior makes it easy to accidentally lose critical configuration and secrets when extending a project.
Steps to Reproduce
- Create a CRE project and define secrets in
secrets.yml
- Run
cre init again in the same project to add a new workflow
- Observe that
secrets.yml is overwritten and existing secrets are removed
Environment
- CRE CLI version: cre version v1.0.3