github-create-secret is the simplest way to create a GitHub secret.
Just call it and it will release the latest git tag created:
npx github-create-secret --owner Kikobeats --repo test --name MY_SECRET --value MY_VALUE
Alternatively, it can be used as Node.js module:
const createSecret = require('github-create-secret')
await createSecret({
owner: "Kikobeats",
repo: "test",
name: "MY_SECRET",
value: "MY_VALUE"
})
github-create-secret © Kiko Beats, released under the MIT License.
Authored and maintained by Kiko Beats with help from contributors.
kikobeats.com · GitHub Kiko Beats · Twitter @kikobeats