Commit fcbdf59
authored
ci(security-review): drop sticky comment, post workflow summary, re-enable synchronize (#1293)
* docs: clarify workflow_dispatch limitation for security review
* test: add deliberate findings + drop sticky comment + add workflow summary
Three changes to verify the inline-comment posting path end-to-end:
1. Add scripts/__sec_review_smoketest.mjs with two deliberate security
findings (hardcoded AWS credentials, command injection via exec) so
create_inline_comment is actually exercised.
2. Remove instructions to call mcp__github_comment__update_claude_comment
from the prompt. That tool requires CLAUDE_COMMENT_ID, which the action
only sets in tag mode / when track_progress is enabled. In agent mode it
fails. Drop the corresponding entry from --allowedTools too.
3. Add a workflow step that counts buffered findings and posts a single
top-level summary comment via the GitHub App token regardless of
findings. Replaces the broken sticky-comment path.
* ci(security-review): re-enable synchronize trigger so re-pushes re-review
* test: remove smoketest fixture (verification done via workflow_dispatch run)
The deliberate findings file was added to exercise the inline-comment posting
path. The workflow_dispatch run confirmed the bot correctly identifies both
findings (hardcoded AWS credentials, command injection via exec). End-to-end
posting via mcp__github_inline_comment__create_inline_comment can only be
verified once this PR merges and a follow-up PR triggers pull_request_target
— workflow_dispatch produces an AutomationContext where the inline-comment
MCP server doesn't register.1 parent ac6cf4a commit fcbdf59
3 files changed
Lines changed: 58 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
214 | | - | |
215 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
216 | 217 | | |
217 | | - | |
| 218 | + | |
218 | 219 | | |
219 | 220 | | |
220 | 221 | | |
| |||
228 | 229 | | |
229 | 230 | | |
230 | 231 | | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | 232 | | |
235 | 233 | | |
236 | 234 | | |
| |||
282 | 280 | | |
283 | 281 | | |
284 | 282 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
294 | 287 | | |
295 | | - | |
296 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
297 | 291 | | |
298 | 292 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
217 | | - | |
218 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
222 | 260 | | |
223 | 261 | | |
224 | 262 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| |||
0 commit comments