feat(powershell-format): disclose formatter rewrites on the user channel - #2477
Conversation
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
ad88dc7 to
726e455
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ad88dc7534
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
d89e2db to
e8c4c27
Compare
|
Claude finished @kyle-sexton's task in 2m 39s —— View job Security Review
Reviewed the 3 changed files ( Finding: Full-file snapshot in system temp isn't cleaned up on the trust-gate and tool-break exit pathsFile: The new snapshot logic copies the entire content of the edited file into a _ps_before=""
if _ps_before=$(mktemp 2>/dev/null); then
cp "$FILE" "$_ps_before" 2>/dev/null || _ps_before=""
fi
By contrast the exit-3 and exit-5 arms were given an explicit Impact: every edit that hits the trust gate (a state this hook is specifically designed to reach — repos with Severity: IMPORTANT Suggested fix: install a single No injection, authorization, credential-handling, or GitHub Actions concerns found in this diff — Note: Codex's review already flagged a separate, non-security correctness issue on this PR (composing the rewrite notice with lint context can emit two JSON documents on stdout in the exit-1 path) — that's a hook-protocol/output-format bug, not a security vulnerability, so it's out of scope for this review and I'm deferring to that comment rather than duplicating it. |
e8c4c27 to
89c4c90
Compare
|
Claude finished @kyle-sexton's task in 1m 49s —— View job Security Review
Reviewed the 3 changed files ( Finding: Full-file snapshot in system temp isn't cleaned up on the trust-gate and tool-break exit pathsFile: The new pre-format snapshot copies the entire content of the edited file into a _ps_before=""
if _ps_before=$(mktemp 2>/dev/null); then
cp "$FILE" "$_ps_before" 2>/dev/null || _ps_before=""
fi
By contrast, the exit‑3 and exit‑5 arms were explicitly given There's a second, narrower leak in the same block: if Impact: the trust gate (exit 6) is precisely the state this hook is designed to reach for repos with unapproved Severity: IMPORTANT Suggested fix: install a single No injection, authorization, credential-handling, or GitHub Actions concerns found otherwise: Note: Codex already flagged a separate issue on this PR — composing the rewrite notice with lint context can print two JSON documents on stdout in the exit-1 path ( |
|
Claude finished @kyle-sexton's task in 3m 8s —— View job Code Review
Reviewed the 3 changed files against this repo's REVIEW.md code-review-lane scope (correctness, design, conventions, error handling, observability, tests, docs). This repo has a Finding posted inline (
|
|
Claude has reviewed this PR 2 times. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
89c4c90 to
1c800cf
Compare
|
Claude finished @cursor[bot]'s task in 2m 20s —— View job CI Security Review
Reviewed the 3 changed files ( Skip-gate note: this PR's only content commit is Finding (posted inline at
|
|
Last security-reviewed head: |
Partially addresses #1596 Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
…writes Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
eb931d6 to
b08c0f6
Compare
|
Claude finished @cursor[bot]'s task in 1m 9s —— View job CI Security Review
Skip-gate result: no new security-relevant surface. The only commit added since the last security review (at HEAD Prior finding status: the previously-reported IMPORTANT finding — the No new injection, authorization, credential-handling, or GitHub Actions concerns found in this commit. |
|
Claude finished @cursor[bot]'s task in 31s —— View job Code Review (
|
No linked issue
Partially addresses #1596
Related
Refs #1596