A utility script to CRUD repository secrets
- Clone the repository
- Make sure NodeJs is installed
- Install dependencies, run:
npm i
- Run the script,
./secrets.js
Usage: secrets list [options] <repository>
List the repository secrets
Options:
-h, --help display help for command
Example: ./secrets.js -t <TOKEN> list <REPO_NAME>
Usage: secrets add [options] <name> <value>
Add/Modify the repository secrets
Arguments:
name Name of the secret
value Plain text secret value
Options:
-r --repo <repository> Repository name
-h, --help display help for command
Example: ./secrets.js -t <TOKEN> add <SECRET_NAME> <PLAIN_VALUE> -r <REPO_NAME>
Usage: secrets remove [options] <name>
Remove the specified repository secret
Options:
-r --repo <repository> Repository name
-h, --help display help for command
Example: ./secrets.js -t <TOKEN> remove <SECRET_NAME> -r <REPO_NAME>