fix(claude-config): flag tilde-user paths and inert grant tokens - #2407
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. |
|
Claude finished @kyle-sexton's task in 5m 34s —— View job Review complete
Repo has a Posted two inline comments:
Not anchorable to a changed line — documentation drift: the script's header comment (now "Flags five anti-patterns...") and the two new checks (P4, and the P2b tilde-user variant of P2) were not mirrored into the docs that are supposed to be their source of truth:
Neither doc file is covered by an automated sync check, so this won't break CI, but it leaves the documented spec out of sync with the implementation for both new checks added in this PR while the script's own header docs were updated. Worth a follow-up pass on Everything else — the Note: the author-claimed "94 checks passed" test-run result in the PR description is unverified by me — I was not able to execute the modified shell scripts in this sandbox (script execution on changed PR files requires approval that isn't available in this lane), so I reviewed statically and via |
|
Claude finished @kyle-sexton's task in 1m 13s —— View job Security Review — PR #2407
No security issues found. Reviewed the full diff ( The substantive change is confined to
No logic flaws, authz gaps, injection surfaces, secret-handling issues, or workflow permission changes identified in this diff. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5d84343994
ℹ️ 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".
|
Claude has reviewed this PR 2 times. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
5d84343 to
95d95a2
Compare
…ermission-rule-check Fixes #2397. Adds P2 detection for Bash(~user/…) rules that leak a username and are not expanded at runtime, and a new P4 check for inert ${CLAUDE_PLUGIN_ROOT}, %USERPROFILE%, and $env:USERPROFILE grants with a branched remedy. Tests: permission-rule-check.test.sh (94 checks). Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
|
Claude finished @kyle-sexton's task in 1m 35s —— View job Security Review — PR #2407 (re-run on latest commit
|
|
Claude finished @kyle-sexton's task in 2m 35s —— View job Review complete
Repo has a Note on scope: the diff content at HEAD Posted 3 inline comments:
Not anchorable to a changed line — documentation drift (also unaddressed from the prior round):
Neither doc file is covered by an automated sync check, so this won't break CI, but the header comment now says "Flags five anti-patterns" while the docs it points to as the source of truth only describe three. Worth a follow-up pass on Checked out fine on this pass: Author-claimed test result ("94 checks passed") is unverified by me — I reviewed statically via |
…ssion-rule-check Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
|
Warning Automated security review did not complete — this is an infrastructure failure, not a review verdict. Treat any Claude comment on this PR (including a placeholder like "I'll analyze this and get back to you") as incomplete, not "no findings."
The check is green on purpose, and it is not evidence. It certifies that a security pass ran, and this one did not complete — but the cause is outside this PR's control, so merging is deliberately left unblocked rather than locking every merge for the length of the outage. Nothing was reviewed at this head. Where this check is required, it is satisfied without that evidence; a human should review security-sensitive changes here before merging. Re-run the job to retry the review; a new push also retries it only if the caller's Re-running does NOT help for every class:
|
|
Warning Automated review did not complete — this is an infrastructure failure, not a review verdict. Treat any Claude comment on this PR (including a placeholder like "I'll analyze this and get back to you") as incomplete, not "no findings."
Re-run the job to retry the review. A new push re-triggers this lane only if the caller's |
…-check Co-authored-by: Kyle Sexton <kyle-sexton@users.noreply.github.com>
Fixes #2397.
Adds P2 detection for
Bash(~user/…)rules that leak a username and are not expanded at runtime, and a new P4 check for inert${CLAUDE_PLUGIN_ROOT},%USERPROFILE%, and$env:USERPROFILEgrants with a branched remedy (skill-local →${CLAUDE_SKILL_DIR}; otherwise → bare PATH command).Verification
permission-rule-check.test.sh: 94 checks passedRelated
Bash(~user/...)leaks a username unflagged #2397 — permission-rule-check A7b/A12