security-harness-kit 0.5.5 → 0.5.7

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 CHANGED
@@ -30,6 +30,7 @@ With `shk`, you can:
30
30
  - Install Git pre-commit hooks.
31
31
  - Install managed hooks for Claude Code, Cursor, Codex, GitHub Copilot, Antigravity, and Windsurf.
32
32
  - Preview metadata-only audit logs to understand blocked hook activity without storing detected values.
33
+ - Statically audit MCP client configurations for unsafe package, credential, HTTP, and filesystem settings.
33
34
  - Generate a GitHub Actions workflow that runs `shk scan` on every pull request.
34
35
  - Diagnose ignore file and `.env` safety coverage.
35
36
  - Deploy AI agent skills to Claude Code, Codex, Cursor, GitHub Copilot, Antigravity, and Windsurf project directories.
@@ -133,8 +134,32 @@ Generate a GitHub Actions workflow that scans every pull request:
133
134
 
134
135
  ```bash
135
136
  shk ci init github
137
+ # Add GitHub code scanning alerts and PR annotations:
138
+ shk ci init github --upload-sarif
136
139
  ```
137
140
 
141
+ Alternatively, use the repository's composite action after checkout on a Linux or macOS runner:
142
+
143
+ ```yaml
144
+ permissions:
145
+ contents: read
146
+ security-events: write
147
+
148
+ steps:
149
+ - uses: actions/checkout@v6
150
+ with:
151
+ persist-credentials: false
152
+ - uses: Kazuki-tam/security-harness-kit@v1
153
+ with:
154
+ path: .
155
+ fail-on: high
156
+ upload-sarif: true
157
+ ```
158
+
159
+ Set `upload-sarif: false` when GitHub code scanning is unavailable. Private repositories
160
+ need GitHub Code Security enabled to upload SARIF. Pull requests from forks normally receive
161
+ a read-only token; disable upload for those runs if the repository does not permit SARIF upload.
162
+
138
163
  Install the shk agent skill for Claude Code, Codex/Cursor, Copilot, Antigravity, and Windsurf:
139
164
 
140
165
  ```bash
@@ -191,6 +216,11 @@ shk audit --reason action-guard
191
216
  shk audit --since 7d --tool cursor
192
217
  shk audit --json
193
218
 
219
+ shk mcp audit
220
+ shk mcp audit --json
221
+ shk mcp audit --sarif
222
+ shk mcp audit --global
223
+
194
224
  shk env dotenvx import-keys .env.keys
195
225
  shk env encrypt .env --in-place
196
226
  shk env run -- npm test
@@ -210,9 +240,10 @@ shk hooks install-ai --tool antigravity
210
240
  shk hooks install-ai --tool windsurf
211
241
 
212
242
  shk ci init github
243
+ shk ci init github --upload-sarif
213
244
  shk ci init github --dry-run
214
245
  shk ci init github --mode audit
215
- shk ci init github --shk-version v0.5.5
246
+ shk ci init github --shk-version v0.5.7
216
247
 
217
248
  shk skills install
218
249
  shk skills install --tool claude-code --global
@@ -278,8 +309,8 @@ shk env key migrate --to 1password
278
309
  | Code | Meaning |
279
310
  |------|---------|
280
311
  | `0` | No findings at or above the active threshold, or command completed successfully. |
281
- | `1` | Scan findings met or exceeded the active threshold. |
282
- | `2` | Blocking AI pre-hook triggered, or a Git-specific scan mode was run outside a Git repository. |
312
+ | `1` | Scan or MCP audit findings met or exceeded the active threshold. |
313
+ | `2` | Blocking AI pre-hook triggered, or a scan/MCP audit runtime or configuration error occurred. |
283
314
 
284
315
  ## Safety Notes
285
316
 
@@ -23,7 +23,7 @@
23
23
  "hasInstallScript": true,
24
24
  "license": "MIT",
25
25
  "name": "security-harness-kit",
26
- "version": "0.5.5"
26
+ "version": "0.5.7"
27
27
  },
28
28
  "node_modules/@isaacs/cliui": {
29
29
  "engines": {
@@ -542,5 +542,5 @@
542
542
  }
543
543
  },
544
544
  "requires": true,
545
- "version": "0.5.5"
545
+ "version": "0.5.7"
546
546
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "artifactDownloadUrls": [
3
- "https://github.com/Kazuki-tam/security-harness-kit/releases/download/v0.5.5"
3
+ "https://github.com/Kazuki-tam/security-harness-kit/releases/download/v0.5.7"
4
4
  ],
5
5
  "bin": {
6
6
  "shk": "run-shk.js"
@@ -85,7 +85,7 @@
85
85
  "zipExt": ".tar.xz"
86
86
  }
87
87
  },
88
- "version": "0.5.5",
88
+ "version": "0.5.7",
89
89
  "volta": {
90
90
  "node": "18.14.1",
91
91
  "npm": "9.5.0"