Skip to content

cre init overwrites existing project secrets when adding a new workflow #209

@EmanHerawy

Description

@EmanHerawy

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

  1. Create a CRE project and define secrets in secrets.yml
  2. Run cre init again in the same project to add a new workflow
  3. Observe that secrets.yml is overwritten and existing secrets are removed

Environment

  • CRE CLI version: cre version v1.0.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions