DEPRECATED: Dockerized GitHub actions secrets management CLI tool
1.5K
⚠️ DEPRECATED: this project will not be longer maintained, instead, GitHub has published a gh cli to manage secrets among other features of its ecosystem.
GitHub actions secrets management CLI tool
Available in:
cp .gh-secrets.example $HOME/.gh-secretsUsage: gh-secrets <command> [options] <url> [parameters]
Commands:
gh-secrets list <url> Lists all secrets available in a repository/organization without revealing their encrypted values
gh-secrets get <name> <url> Gets a single secret from a repository/organization without revealing its encrypted value
gh-secrets set <name> <value> <url> [--visibility all | private | selected] Creates or updates a secret in a repository/organization with an encrypted value
gh-secrets setAll <file> <url> [--visibility all | private | selected] Creates or updates a batch of secrets in a repository/organization with an encrypted values from a file
gh-secrets delete <name> <url> Deletes a secret in a repository/organization using the secret name
Options:
-h, --help Show help [boolean]
-v, --version Show version number [boolean]
Examples:
gh-secrets list https://github.com/owner/repository-name
gh-secrets get SECRET_NAME https://github.com/owner/repository-name
gh-secrets set SECRET_NAME value https://github.com/owner/repository-name
gh-secrets setAll secrets.env https://github.com/owner/repository-name
gh-secrets delete SECRET_NAME https://github.com/owner/repository-name
gh-secrets list https://github.com/owner
gh-secrets get SECRET_NAME https://github.com/owner
gh-secrets set SECRET_NAME value https://github.com/owner
gh-secrets set SECRET_NAME value https://github.com/owner --visibility all
gh-secrets set SECRET_NAME value https://github.com/owner --visibility private
gh-secrets set SECRET_NAME value https://github.com/owner --visibility selected
gh-secrets setAll secrets.env https://github.com/owner
gh-secrets setAll secrets.env https://github.com/owner --visibility all
gh-secrets setAll secrets.env https://github.com/owner --visibility private
gh-secrets setAll secrets.env https://github.com/owner --visibility selected
gh-secrets delete SECRET_NAME https://github.com/owner
npm install -g @kijart/gh-secretsgh-secrets -hgh-secrets list https://github.com/owner/repository-namegh-secrets setAll /app/secrets.env https://github.com/owner/repository-nameBuild from source: docker pull kijart/gh-secrets
Run examples:
help: docker run --rm -it -v $HOME/.gh-secrets:/home/node/.gh-secrets gh-secrets -h
list: docker run --rm -it -v $HOME/.gh-secrets:/home/node/.gh-secrets gh-secrets list https://github.com/owner/repository-name
setAll:
docker run --rm -it \
-v $HOME/.gh-secrets:/home/node/.gh-secrets \
-v $(pwd)/secrets.env:/app/secrets.env \
kijart/gh-secrets setAll /app/secrets.env https://github.com/owner/repository-name`
docker-compose up --no-startdocker-compose run --rm gh-secrets -hdocker-compose run --rm gh-secrets list https://github.com/owner/repository-namedocker-compose run --rm gh-secrets setAll secrets.env https://github.com/owner/repository-namenpm installnpm install -g .gh-secrets -hgh-secrets list https://github.com/owner/repository-namegh-secrets setAll /app/secrets.env https://github.com/owner/repository-nameContent type
Image
Digest
sha256:7c6e3955b…
Size
29.4 MB
Last updated
about 3 years ago
docker pull kijart/gh-secrets