@skaleagents/swarm 0.8.0 → 0.8.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/README.md +2 -2
- package/dist/secrets.js +2 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ Suppress an intended setting with a comment on the flagged line or the line abov
|
|
|
37
37
|
**Cursor.** Add `.cursor/hooks.json`:
|
|
38
38
|
|
|
39
39
|
```json
|
|
40
|
-
{ "version": 1, "hooks": { "stop": [{ "command": "npx -y --registry=https://registry.npmjs.org @skaleagents/swarm@0.8.
|
|
40
|
+
{ "version": 1, "hooks": { "stop": [{ "command": "npx -y --registry=https://registry.npmjs.org @skaleagents/swarm@0.8.1 scan --hook" }] } }
|
|
41
41
|
```
|
|
42
42
|
|
|
43
43
|
**GitHub Action.** It posts one PR comment and fails on `critical` by default:
|
|
@@ -51,7 +51,7 @@ jobs:
|
|
|
51
51
|
steps:
|
|
52
52
|
- uses: actions/checkout@v4
|
|
53
53
|
with: { fetch-depth: 0 }
|
|
54
|
-
- uses: SkaleAgents/mcp-server@v0.8.
|
|
54
|
+
- uses: SkaleAgents/mcp-server@v0.8.1
|
|
55
55
|
with: { fail-on: high }
|
|
56
56
|
```
|
|
57
57
|
|
package/dist/secrets.js
CHANGED
|
@@ -16,7 +16,8 @@ const patterns = [
|
|
|
16
16
|
];
|
|
17
17
|
const maxBytes = 1_000_000;
|
|
18
18
|
const maxFindings = 1000;
|
|
19
|
-
|
|
19
|
+
// Case-sensitive and anchored to the documented dummy shapes, so a real key cannot be skipped by chance or by padding.
|
|
20
|
+
const placeholder = /EXAMPLE$|^[^a-z]*?(?:X{12,}|x{12,})/;
|
|
20
21
|
const skipped = /(^|[/\\])(package-lock\.json|composer\.lock|pnpm-lock\.yaml|yarn\.lock|\.skaleagents-baseline\.json)$|\.(png|jpe?g|gif|webp|ico|pdf|zip|gz|woff2?|ttf|mp4|mov|wasm|lock|map)$/i;
|
|
21
22
|
function gitIgnored(files) {
|
|
22
23
|
try {
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.8.
|
|
1
|
+
export declare const VERSION = "0.8.1";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "0.8.
|
|
1
|
+
export const VERSION = "0.8.1";
|