-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
37 lines (37 loc) · 2.27 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"name": "clutch-gitleaks-secrets-scanner",
"displayName": "Clutch Gitleaks Secrets Scanner",
"description": "A VS Code extension provided by Clutch Security to scan the workspace for secrets using Gitleaks",
"version": "0.0.1",
"publisher": "ClutchSecurity",
"icon": "icon.png",
"homepage": "https://clutch.security/",
"engines": {
"vscode": "^1.74.0"
},
"categories": [
"Other"
],
"repository": "https://github.com/clutchsecurity/clutch-vscode-extension",
"activationEvents": [
"onDidChangeTextDocument",
"onDidSaveTextDocument",
"onStartupFinished"
],
"main": "./src/extension.js",
"contributes": {
"commands": [
{
"command": "gitleaks-scan.scanForSecrets",
"title": "Scan Workspace for Secrets"
},
{
"command": "gitleaks-scan.showSummary",
"title": "Show Secrets Summary"
}
]
},
"scripts": {
"vscode:prepublish": "cd executables; wget https://github.com/gitleaks/gitleaks/releases/download/v8.19.2/gitleaks_8.19.2_darwin_arm64.tar.gz; wget https://github.com/gitleaks/gitleaks/releases/download/v8.19.2/gitleaks_8.19.2_darwin_x64.tar.gz; wget https://github.com/gitleaks/gitleaks/releases/download/v8.19.2/gitleaks_8.19.2_linux_arm64.tar.gz; wget https://github.com/gitleaks/gitleaks/releases/download/v8.19.2/gitleaks_8.19.2_linux_armv6.tar.gz; wget https://github.com/gitleaks/gitleaks/releases/download/v8.19.2/gitleaks_8.19.2_linux_armv7.tar.gz; wget https://github.com/gitleaks/gitleaks/releases/download/v8.19.2/gitleaks_8.19.2_linux_x32.tar.gz; wget https://github.com/gitleaks/gitleaks/releases/download/v8.19.2/gitleaks_8.19.2_linux_x64.tar.gz; wget https://github.com/gitleaks/gitleaks/releases/download/v8.19.2/gitleaks_8.19.2_windows_armv6.zip; wget https://github.com/gitleaks/gitleaks/releases/download/v8.19.2/gitleaks_8.19.2_windows_armv7.zip; wget https://github.com/gitleaks/gitleaks/releases/download/v8.19.2/gitleaks_8.19.2_windows_x32.zip; wget https://github.com/gitleaks/gitleaks/releases/download/v8.19.2/gitleaks_8.19.2_windows_x64.zip; for f in *.tar.gz; do tar xf \"$f\";mv gitleaks $(basename \"$f\" .tar.gz); done; for f in *.zip; do tar xf \"$f\";mv gitleaks.exe $(basename \"$f\" .zip).exe; done; git restore LICENSE README.md; echo 'Ready to package!'"
}
}