Difference between revisions of "Gh secret set"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
* https://cli.github.com/manual/gh_secret_set | * https://cli.github.com/manual/gh_secret_set | ||
− | + | # Paste secret value for the current repository in an interactive prompt | |
[[gh secret]] set your-secret-name | [[gh secret]] set your-secret-name | ||
+ | |||
+ | |||
+ | [[gh secret]] set MYSECRET < myfile.txt | ||
+ | |||
Line 11: | Line 15: | ||
[[Category:GitHub]] | [[Category:GitHub]] | ||
+ | [[Category:Secrets]] |
Latest revision as of 19:41, 7 February 2024
# Paste secret value for the current repository in an interactive prompt gh secret set your-secret-name
gh secret set MYSECRET < myfile.txt
See also[edit]
- GitHub secrets:
gh secret [ list | set ]
gh [ auth | repo | secret | issue | workflow | webhook | gh environment | actions | run ] gh auth login, gh pr create, gh --help
Advertising: