Skip to content

[Docs]: generate Command - Unclear how to set the "file" value for secrets from file #84

@silversoul93

Description

@silversoul93

Documentation Revision

Hi guys,
I read on this page I can read the secret content from literal or from file.
Regarding the from file case, I am not sure about what value should I use for the file property.

Are the following examples right?

secrets:
  - name: "my-secret-value-from-local-file"
    when: "always"
    data:
      - from: "file"
        file: ./path-to-file-in-same-repository

  - name: "my-secret-value-from-file-on-git-provider"
    when: "always"
    data:
      - from: "file"
        file: /path/to/same/git/provider/repository/file

Is there any other use case I am missing?

Code of Conduct

  • I agree to follow this project’s Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationneeds triageThis issue or pull request needs to be categorized

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions