gh-check-env-cli
v1.0.1
Published
A CLI tool to check for environment variables in a project with a Github actions workflow.
Readme
Github Check Env CLI
A CLI tool to check for environment variables in a project and verify their existence in GitHub secrets.
Installation
You can install the CLI tool globally from npm:
npm install -g gh-check-env-cliAlternatively, you can install it as a dev dependency in your project:
npm install --save-dev gh-check-env-cliUsage
Once installed, you can run the check-env command from your terminal.
As a global package
gh-check-env [options]As a project dependency
You can add it to your package.json scripts:
"scripts": {
"gh-check-env": "gh-check-env --repo your-repo --owner your-owner"
}Then run it with:
npm run gh-check-envOptions
--repo,-r: Repository name (required)--owner,-o: Repository owner (required)--dir,-d: Directory to scan (default: ".")--token,-t: GitHub token (can also be set withGHCR_TOKENenvironment variable)
Example
gh-check-env --repo my-repo --owner my-username --token your-github-tokenThis will scan the current directory for environment variables, check them against the secrets in the specified GitHub repository, and log the results to the console.
