Referencesince 1.0.0-beta.3
penv scan
Find secret values committed to files
Find secret values committed to files.
Usage
penv scan [--staged] [--install-hook] [--env <env>] [paths...]Every command also takes the global options.
Arguments
| Argument | Required | What it is |
|---|---|---|
[paths...] | no | Files or folders to scan instead of what git would commit. Takes more than one. |
Flags
| Flag | What it does | Environment variable |
|---|---|---|
--staged | Scan only what is staged for the next commit. | |
--install-hook | Write a git pre-commit hook that runs penv scan --staged. | |
--env <env> | The environment whose values to look for. | PENV_ENV |
Exit codes
| Code | Name | What it means |
|---|---|---|
0 | ok | The command did what it says. |
1 | error | Unclassified failure. The message on stderr names the cause. |
3 | validation | The schema or the values did not pass. |
5 | no_credential | No credential is available and none can be obtained. |
6 | environment_refused | This identity may not read that environment. |