@vibecontrols/vibe-plugin-security-secrets-pr 2026.528.1 → 2026.1108.1
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/LICENSE +21 -9
- package/README.md +28 -1
- package/dist/index.js +1 -1
- package/package.json +40 -24
package/LICENSE
CHANGED
|
@@ -1,13 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2026 Burdenoff Consultancy Services
|
|
3
|
+
Copyright (c) 2026 Burdenoff Consultancy Services Private Limited,
|
|
4
|
+
Algoshred Technologies Private Limited,
|
|
5
|
+
and all its sister companies.
|
|
4
6
|
|
|
5
|
-
|
|
6
|
-
proprietary to Burdenoff Consultancy Services Pvt. Ltd. ("Burdenoff").
|
|
7
|
+
Maintainer: Vignesh T.V <https://github.com/tvvignesh>
|
|
7
8
|
|
|
8
|
-
Permission is
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
11
|
+
in the Software without restriction, including without limitation the rights
|
|
12
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
+
copies of the Software, and to permit persons to whom the Software is furnished
|
|
14
|
+
to do so, subject to the following conditions:
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
The above copyright notice and this permission notice shall be included in all
|
|
17
|
+
copies or substantial portions of the Software.
|
|
18
|
+
|
|
19
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
25
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -33,6 +33,33 @@ config:
|
|
|
33
33
|
extraArgs: [] # additional CLI flags
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
+
<!-- VIBECONTROLS_OSS_FOOTER_START -->
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## About VibeControls
|
|
41
|
+
|
|
42
|
+
**VibeControls** is the agentic engineering mission control for AI-native teams. Vibe-plugins extend the VibeControls agent with new providers, tools, sessions, tunnels, storage backends, and security stages.
|
|
43
|
+
|
|
44
|
+
- Website: <https://vibecontrols.com>
|
|
45
|
+
- Documentation: <https://docs.vibecontrols.com>
|
|
46
|
+
- Plugin SDK: <https://github.com/algoshred/vibecontrols-plugin-sdk>
|
|
47
|
+
- All plugins: <https://github.com/algoshred?q=vibe-plugin-&type=all>
|
|
48
|
+
|
|
49
|
+
## Credits
|
|
50
|
+
|
|
51
|
+
This plugin builds on the following upstream open-source projects. All trademarks and copyrights remain with their respective owners.
|
|
52
|
+
|
|
53
|
+
- **Gitleaks** — <https://github.com/gitleaks/gitleaks>
|
|
54
|
+
|
|
36
55
|
## License
|
|
37
56
|
|
|
38
|
-
|
|
57
|
+
Released under the [MIT License](./LICENSE).
|
|
58
|
+
|
|
59
|
+
Copyright (c) 2026 Burdenoff Consultancy Services Private Limited, Algoshred Technologies Private Limited, and all its sister companies.
|
|
60
|
+
|
|
61
|
+
Maintainer: **Vignesh T.V** — <https://github.com/tvvignesh>
|
|
62
|
+
|
|
63
|
+
**Note**: this plugin is open source under MIT. The `@vibecontrols/agent` runtime that loads and orchestrates plugins is **closed source** and proprietary to Burdenoff Consultancy Services Pvt. Ltd. If you want a fully self-hostable agent, please open an issue or contact the maintainer.
|
|
64
|
+
|
|
65
|
+
<!-- VIBECONTROLS_OSS_FOOTER_END -->
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{ProviderRegistry,TelemetryEmitter,createLifecycleHooks}from"@vibecontrols/plugin-sdk";import{spawn}from"child_process";import{createHash}from"crypto";import{promises as fs}from"fs";import*as path from"path";import{normalizeSarif}from"@vibecontrols/vibe-plugin-security/normalizer";import{resolveToolPath}from"@vibecontrols/vibe-plugin-security/tool-installer";var GITLEAKS_VERSION="8.21.2",TOOLS_MANIFEST={gitleaks:{version:"8.21.2",binaryName:"gitleaks",versionMatcher:`${"8.21.2".replace(/\./g,"\\.")}`,downloads:{"linux-x64":{url:"https://github.com/gitleaks/gitleaks/releases/download/v8.21.2/gitleaks_8.21.2_linux_x64.tar.gz",sha256:"5bc41815076e6ed6ef8fbecc9d9b75bcae31f39029ceb55da08086315316e3ba",binaryWithinArchive:"gitleaks",archive:"tar.gz"},"linux-arm64":{url:"https://github.com/gitleaks/gitleaks/releases/download/v8.21.2/gitleaks_8.21.2_linux_arm64.tar.gz",sha256:"654c935542c89f565aabe7bf7c6c500830f116c114f0aeb509d2460c1ac2e6da",binaryWithinArchive:"gitleaks",archive:"tar.gz"},"darwin-x64":{url:"https://github.com/gitleaks/gitleaks/releases/download/v8.21.2/gitleaks_8.21.2_darwin_x64.tar.gz",sha256:"5b42c6e4b1fd693eaeb2b5b7faa5f17a1434299d4deb2de63d4b2efd7c753128",binaryWithinArchive:"gitleaks",archive:"tar.gz"},"darwin-arm64":{url:"https://github.com/gitleaks/gitleaks/releases/download/v8.21.2/gitleaks_8.21.2_darwin_arm64.tar.gz",sha256:"cad3de5dc9a4d5447d967a70a4d49499c557f04db028274cc324f9ff983f6502",binaryWithinArchive:"gitleaks",archive:"tar.gz"}}}};class GitleaksProvider{name="gitleaks";stage="pull_request.fast";toolVersion=GITLEAKS_VERSION;host;toolPath;active=new Map;async init(host){this.host=host}async ensureToolInstalled(){let dataDir=this.host?.getDataDir?.()??path.join(
|
|
2
|
+
import{ProviderRegistry,TelemetryEmitter,createLifecycleHooks}from"@vibecontrols/plugin-sdk";import{spawn}from"child_process";import{createHash}from"crypto";import{promises as fs}from"fs";import*as os from"os";import*as path from"path";import{normalizeSarif}from"@vibecontrols/vibe-plugin-security/normalizer";import{resolveToolPath}from"@vibecontrols/vibe-plugin-security/tool-installer";var GITLEAKS_VERSION="8.21.2",TOOLS_MANIFEST={gitleaks:{version:"8.21.2",binaryName:"gitleaks",versionMatcher:`${"8.21.2".replace(/\./g,"\\.")}`,downloads:{"linux-x64":{url:"https://github.com/gitleaks/gitleaks/releases/download/v8.21.2/gitleaks_8.21.2_linux_x64.tar.gz",sha256:"5bc41815076e6ed6ef8fbecc9d9b75bcae31f39029ceb55da08086315316e3ba",binaryWithinArchive:"gitleaks",archive:"tar.gz"},"linux-arm64":{url:"https://github.com/gitleaks/gitleaks/releases/download/v8.21.2/gitleaks_8.21.2_linux_arm64.tar.gz",sha256:"654c935542c89f565aabe7bf7c6c500830f116c114f0aeb509d2460c1ac2e6da",binaryWithinArchive:"gitleaks",archive:"tar.gz"},"darwin-x64":{url:"https://github.com/gitleaks/gitleaks/releases/download/v8.21.2/gitleaks_8.21.2_darwin_x64.tar.gz",sha256:"5b42c6e4b1fd693eaeb2b5b7faa5f17a1434299d4deb2de63d4b2efd7c753128",binaryWithinArchive:"gitleaks",archive:"tar.gz"},"darwin-arm64":{url:"https://github.com/gitleaks/gitleaks/releases/download/v8.21.2/gitleaks_8.21.2_darwin_arm64.tar.gz",sha256:"cad3de5dc9a4d5447d967a70a4d49499c557f04db028274cc324f9ff983f6502",binaryWithinArchive:"gitleaks",archive:"tar.gz"}}}};class GitleaksProvider{name="gitleaks";stage="pull_request.fast";toolVersion=GITLEAKS_VERSION;host;toolPath;active=new Map;async init(host){this.host=host}async ensureToolInstalled(){let dataDir=this.host?.getDataDir?.()??path.join(os.homedir(),".boff/vibecontrols"),gitleaksEntry=TOOLS_MANIFEST.gitleaks;if(!gitleaksEntry)throw Error("gitleaks entry missing from TOOLS_MANIFEST");this.toolPath=await resolveToolPath({dataDir,log:{info:(m)=>this.host?.logger?.info?.("gitleaks-provider",m),warn:(m)=>this.host?.logger?.warn?.("gitleaks-provider",m),error:(m)=>this.host?.logger?.error?.("gitleaks-provider",m)}},"gitleaks",gitleaksEntry)}async run(input){if(!this.toolPath)await this.ensureToolInstalled();if(!this.toolPath)throw Error("gitleaks-provider: toolPath unavailable");let cfg=input.config??{},sarifPath=path.join(input.workdir,"gitleaks.sarif"),args=["detect","--source",input.repoLocalPath,"--report-format","sarif","--report-path",sarifPath,"--no-banner","--exit-code","0"];if(cfg.configPath)args.push("--config",cfg.configPath);if(cfg.extraArgs)args.push(...cfg.extraArgs);let startedAt=Date.now();input.onProgress?.({pct:5,message:"Starting Gitleaks scan"});let result=await this.spawnAndWait(input.runId,args);if(result.code!==0&&result.code!==1)return{runId:input.runId,status:"errored",findings:[],evidence:[],durationMs:Date.now()-startedAt,summary:{critical:0,high:0,medium:0,low:0,info:0},errorReason:`gitleaks exited ${result.code}: ${result.stderr.slice(0,500)}`};input.onProgress?.({pct:80,message:"Parsing SARIF report"});let findings=[],evidence=[];try{let raw=await fs.readFile(sarifPath,"utf-8");findings=normalizeSarif(raw,this.name,"secret");let sha256=createHash("sha256").update(raw).digest("hex"),stat=await fs.stat(sarifPath);evidence=[{type:"sarif",localPath:sarifPath,sha256,sizeBytes:stat.size}]}catch(err){this.host?.logger?.warn?.("gitleaks-provider",`no SARIF produced: ${String(err)}`)}input.onProgress?.({pct:100,message:"Scan complete"});let summary=summarize(findings);return{runId:input.runId,status:"succeeded",findings,evidence,durationMs:Date.now()-startedAt,summary}}async cancel(runId){let child=this.active.get(runId);if(!child)return;try{child.kill("SIGTERM"),setTimeout(()=>{try{child.kill("SIGKILL")}catch{}},5000)}finally{this.active.delete(runId)}}metadata(){return{stage:this.stage,supportedProfiles:["backend","frontend","cli","sdk","mcp","chrome-extension","vscode-extension"],toolVersion:this.toolVersion,description:"Gitleaks SARIF-output secrets scan for pull_request.fast"}}spawnAndWait(runId,args){if(!this.toolPath)throw Error("gitleaks-provider: toolPath unavailable");return new Promise((resolve)=>{let child=spawn(this.toolPath,args,{stdio:["ignore","pipe","pipe"]});this.active.set(runId,child);let stdout="",stderr="";child.stdout?.on("data",(b)=>stdout+=b.toString()),child.stderr?.on("data",(b)=>stderr+=b.toString()),child.on("close",(code)=>{this.active.delete(runId),resolve({code,stdout,stderr})}),child.on("error",(err)=>{this.active.delete(runId),resolve({code:-1,stdout,stderr:err.message})})})}}function summarize(findings){let s={critical:0,high:0,medium:0,low:0,info:0};for(let f of findings)s[f.severity]++;return s}var PLUGIN_NAME="security-secrets-pr",PLUGIN_VERSION="2026.527.1",createPlugin=(_ctx)=>{let provider=new GitleaksProvider,telemetry=new TelemetryEmitter(PLUGIN_NAME,PLUGIN_VERSION),lifecycle=createLifecycleHooks({name:PLUGIN_NAME,telemetryEventName:"security.secrets-pr.ready",onInit:async(host)=>{await provider.init(host),new ProviderRegistry(host).registerProvider("security.secrets","gitleaks",provider),telemetry.emit("security.secrets-pr.registered",{provider:"gitleaks",toolVersion:provider.toolVersion})}});return{name:PLUGIN_NAME,version:PLUGIN_VERSION,description:"Gitleaks-backed secret scanner for the pull_request.fast lifecycle stage.",tags:["backend","provider","integration"],capabilities:{storage:"rw",subprocess:!0,audit:!0,telemetry:!0},onServerStart:lifecycle.onServerStart,onServerStop:lifecycle.onServerStop}},src_default=createPlugin;export{GitleaksProvider,createPlugin,src_default as default};
|
package/package.json
CHANGED
|
@@ -1,46 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibecontrols/vibe-plugin-security-secrets-pr",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.1108.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"description": "Gitleaks-backed secret scanner for the pull_request.fast lifecycle stage. Registers as a security.secrets provider with @vibecontrols/vibe-plugin-security.",
|
|
8
8
|
"engines": {
|
|
9
|
-
"bun": ">=1.
|
|
9
|
+
"bun": ">=1.4.4"
|
|
10
10
|
},
|
|
11
11
|
"author": {
|
|
12
12
|
"name": "Vignesh T.V",
|
|
13
|
-
"email": "vignesh@burdenoff.com",
|
|
14
13
|
"url": "https://github.com/tvvignesh"
|
|
15
14
|
},
|
|
16
|
-
"license": "
|
|
15
|
+
"license": "MIT",
|
|
17
16
|
"scripts": {
|
|
18
|
-
"build": "bun build ./src/index.ts --outdir ./dist --target bun --minify-syntax --minify-whitespace --external elysia --external @vibecontrols/vibe-plugin-security --external @vibecontrols/plugin-sdk && tsc
|
|
19
|
-
"dev": "tsc --watch",
|
|
20
|
-
"lint": "eslint
|
|
21
|
-
"format": "
|
|
22
|
-
"format:check": "
|
|
23
|
-
"type:check": "
|
|
24
|
-
"test": "bun test
|
|
17
|
+
"build": "bun build ./src/index.ts --outdir ./dist --target bun --minify-syntax --minify-whitespace --external elysia --external @vibecontrols/vibe-plugin-security --external @vibecontrols/plugin-sdk && tsc -p tsconfig.build.json",
|
|
18
|
+
"dev": "tsc -p tsconfig.build.json --watch",
|
|
19
|
+
"lint": "eslint .",
|
|
20
|
+
"format": "bun fmt",
|
|
21
|
+
"format:check": "bun fmt --check",
|
|
22
|
+
"type:check": "boff gate -- bun check --no-pretty",
|
|
23
|
+
"test": "bun test",
|
|
25
24
|
"clean": "rimraf dist",
|
|
26
25
|
"prebuild": "bun run clean",
|
|
27
26
|
"prepublishOnly": "bun run build",
|
|
28
|
-
"sanity": "
|
|
27
|
+
"sanity": "boff sanity",
|
|
28
|
+
"sanity:force": "boff sanity --force",
|
|
29
|
+
"audit": "bun audit --audit-level=high"
|
|
29
30
|
},
|
|
30
31
|
"dependencies": {
|
|
31
32
|
"@vibecontrols/plugin-sdk": "2026.527.1",
|
|
32
33
|
"@vibecontrols/vibe-plugin-security": "2026.528.1"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
|
-
"@
|
|
36
|
-
"@types/
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"rimraf": "^6.0.1",
|
|
42
|
-
"typescript": "^5.9.3",
|
|
43
|
-
"typescript-eslint": "^8.56.0"
|
|
36
|
+
"@burdenoff/toolchain": "2026.1107.14",
|
|
37
|
+
"@types/bun": "^1.4.4",
|
|
38
|
+
"eslint": "^9.39.5",
|
|
39
|
+
"knip": "^6.44.1",
|
|
40
|
+
"rimraf": "^6.1.4",
|
|
41
|
+
"typescript": "6.0.3"
|
|
44
42
|
},
|
|
45
43
|
"peerDependencies": {
|
|
46
44
|
"@vibecontrols/agent": ">=2026.428.0"
|
|
@@ -63,10 +61,10 @@
|
|
|
63
61
|
],
|
|
64
62
|
"repository": {
|
|
65
63
|
"type": "git",
|
|
66
|
-
"url": "git+https://github.com/
|
|
64
|
+
"url": "git+https://github.com/Algoshred/vibe-plugin-security-secrets-pr.git"
|
|
67
65
|
},
|
|
68
66
|
"bugs": {
|
|
69
|
-
"url": "https://github.com/
|
|
67
|
+
"url": "https://github.com/Algoshred/vibe-plugin-security-secrets-pr/issues"
|
|
70
68
|
},
|
|
71
69
|
"homepage": "https://vibecontrols.com",
|
|
72
70
|
"publishConfig": {
|
|
@@ -78,5 +76,23 @@
|
|
|
78
76
|
"!dist/**/*.map",
|
|
79
77
|
"README.md",
|
|
80
78
|
"LICENSE"
|
|
81
|
-
]
|
|
79
|
+
],
|
|
80
|
+
"packageManager": "bun@1.4.4",
|
|
81
|
+
"boff": {
|
|
82
|
+
"type": "plugin",
|
|
83
|
+
"sanity": {
|
|
84
|
+
"steps": [
|
|
85
|
+
"format",
|
|
86
|
+
"lint",
|
|
87
|
+
"typecheck",
|
|
88
|
+
"build",
|
|
89
|
+
"test",
|
|
90
|
+
"knip"
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"overrides": {
|
|
95
|
+
"brace-expansion": ">=5.0.12",
|
|
96
|
+
"minimatch": ">=3.1.3"
|
|
97
|
+
}
|
|
82
98
|
}
|