#234: Fix code review findings — 5 HIGH, 8 MEDIUM, 6 LOW severity#247
Merged
JeremyDev87 merged 15 commits intomainfrom Feb 16, 2026
Merged
#234: Fix code review findings — 5 HIGH, 8 MEDIUM, 6 LOW severity#247JeremyDev87 merged 15 commits intomainfrom
JeremyDev87 merged 15 commits intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses all actionable findings from the 2026-02-12 comprehensive code review (issue #234). Supersedes closed draft PR #239.
HIGH severity (5)
findPlanComment()— only trusted bot authors acceptedescapeArrayForShellArg()NONEinauthorized_approversvalidationas LeonidasModecast withisValidLeonidasMode()type guardas Commandcast withisValidCommand()type guardMEDIUM severity (8)
core.setSecret()in main.tsescapeForShellArg()path.join()instead of string interpolation for file pathscoverage/**to ESLint ignorespost_process_cli.ts(remainingas LeonidasMode)GH_TOKENwithcore.setSecret()in allpost_process_cli.tsfunctionsescapeForShellArg()LOW severity (6)
5to named constantRESERVED_TURNSparseRepo()validation — reject empty, missing separator, and extra path segments0o600parseRepo()(e.g.,owner/repo/extra)as CommandinisValidCommand()mode: 0o600Skipped (false positives / already resolved)
allowed_toolsdefault — documented design decisionwrapUserContent()run()refactoring — already donelinkSubIssues— already fixedCloses #234
Test plan
npx vitest run)npm run lintpasses (ESLint + Prettier)npm run typecheckpasses (tsc --noEmit)npm run buildsucceeds (ncc bundle)