fix(registry): restore prefixed pipe-to-shell detection#2095
Conversation
|
Warning Review limit reached
More reviews will be available in 25 minutes and 9 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more credits in the billing tab to continue. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Important Gittensory found maintainer review notesPublic GitHub metadata was checked for review readiness. Gittensor-specific context appears only when confirmed. Readiness score: 93/100
Signal definitions
Review context
Maintainer notes
Contributor next steps
Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers. Learn more about Gittensor contribution workflows. |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
🔍 Maintainer advisory reviewReviewed 2 changed file(s) — two independent AI reviewers. This is an advisory review — it does not merge or close the PR. Suggested action: 🛠️ Request changes. (reviewers split: merge / request changes) Address the items below before merging. Reviewer A · Suggestions
Worth double-checking
Reviewer B · Suggestions
Worth double-checking
|
Motivation
;/&as hard barriers and only reading the first alphanumeric token, which produced false negatives for common shell constructs such as POSIX environment assignments and quoted URL arguments.Description
|,;, and&inside single or double quotes do not break segment parsing (seepipeChainSegments).shellTokenEnd,shellToken, andisEnvironmentAssignmenthelpers and anENV_VALUE_FLAGSset to parse tokens robustly across quoting and escaping contexts.segmentLeadCommandto skip POSIX environment assignments and handlesudoandenvwrappers (including value-taking flags) before determining the real lead command, restoring detection of prefixedcurl/wget/base64usages.HTTPS_PROXY=... curl ... | sh,env ... curl ... | sh, quoted URLs containing&/;, andVAR=1 base64 -d ... | shintests/command-safety.test.ts.Testing
pnpm exec vitest run tests/command-safety.test.tsand all tests passed (1 file, 6 tests).pnpm validate:packagesand package validation passed (Package download validation passed).git diff --checkand no whitespace or diff issues were reported.Codex Task