Describe the bug
Passing secrets to GitHub CLI via stdin results in the secrets causing authentication failures when used, while setting secrets with the --body switch works.
There must be some kind of bug in the non-interactive stdin passing.
Steps to reproduce the behavior
This works:
gh secret set "$key" --body "$value"
This results in unusable secrets causing authentication failures eg. for AWS CLI
gh secret set "$key" <<< "$value"
gh --version
gh version 2.4.0 (2021-12-21)
https://github.com/cli/cli/releases/tag/v2.4.0
Describe the bug
Passing secrets to GitHub CLI via stdin results in the secrets causing authentication failures when used, while setting secrets with the
--bodyswitch works.There must be some kind of bug in the non-interactive stdin passing.
Steps to reproduce the behavior
This works:
This results in unusable secrets causing authentication failures eg. for AWS CLI