Pipe file content as GitHub secret
cat <file> | gh secret set <SECRET_NAME>
- Kategory
- github-cli secrets
- Description
- Reads the contents of a file and sets it directly as a GitHub Actions secret, useful for PEM keys or certificates.
- Kontributor
- iarc13
- Upvotes
- ▲ 0