@smriti111kc/secretshield 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -3
- package/dist/cli.js +13303 -0
- package/package.json +43 -4
package/README.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
# SecretShield CLI
|
|
2
|
+
|
|
3
|
+
Install the pre-commit hook from the root of your Git repository:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npx --yes @secretshield/cli install-hook
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
The hook scans staged files before each commit and blocks commits when it finds a high-severity secret.
|
|
10
|
+
|
|
11
|
+
To scan manually:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx --yes @secretshield/cli scan .
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
The npm package must be published before these commands are available from the registry.
|