Skip to content

Clarify documentation for setting secret value from a file #4038

@xinatcg

Description

@xinatcg

CLI Feedback

I try the

gh secret set AWS_ACCESS_KEY_ID < github-secret.json

and github-secret.json

[
  {
    "key_id": "AWS_DEFAULT_REGION",
    "encrypted_value": "xxx"
  },
  {
    "key_id": "AWS_ACCESS_KEY_ID",
    "encrypted_value": "xxxxx"
  }
]

but it seem like set wrong value as auth always fail. After manually change the value on website, auth successfully.

as it is secret, cannot check the value set after the cli performed. so do i use right way? (the doc did not show what the format of json file for this api https://cli.github.com/manual/gh_secret_set)

You can use this template to give us structured feedback or just wipe it and leave us a note. Thank you!

What have you loved?

eg "the nice colors"

What was confusing or gave you pause?

eg "it did something unexpected"

Are there features you'd like to see added?

eg "gh cli needs mini-games"

Anything else?

eg "have a nice day"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions