Skip to content

fix: eliminate JSON injection risk in cmd_image ref array construction#4456

Merged
alex-solovyev merged 1 commit intomainfrom
bugfix/3543-runway-json-injection
Mar 13, 2026
Merged

fix: eliminate JSON injection risk in cmd_image ref array construction#4456
alex-solovyev merged 1 commit intomainfrom
bugfix/3543-runway-json-injection

Conversation

@alex-solovyev
Copy link
Collaborator

Fixes #3543

Eliminates JSON injection risk in cmd_image ref array construction in runway-helper.sh.

@gemini-code-assist
Copy link

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 13, 2026

Warning

Rate limit exceeded

@alex-solovyev has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 16 minutes and 56 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: f6fb5499-85fc-43cb-bc70-ff0c5498c49d

📥 Commits

Reviewing files that changed from the base of the PR and between abb23f4 and 2e37246.

📒 Files selected for processing (1)
  • .agents/scripts/tests/test-pulse-wrapper-worker-count.sh
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch bugfix/3543-runway-json-injection
📝 Coding Plan
  • Generate coding plan for human review comments

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Three issues from CodeRabbit review on PR #4357 (GH#4282):

1. Unify global capacity counting: prefetch_active_workers() used a
   grep pipeline that diverged from count_active_workers(). Replace
   with the same awk filter so the active-worker snapshot shown to the
   pulse agent is always consistent with the global capacity counter.

2. Narrow /pulse exclusion to argument boundaries: count_active_workers()
   had a !( newline ) awk pattern that caused a GNU awk parse error
   (unexpected newline after '!'). Collapse to a single-line !(...) guard.
   prefetch_active_workers() now uses the same token-boundary regex
   (--role pulse + --session-key supervisor-pulse as whole arguments)
   instead of a broad substring grep that could hide legitimate workers.

3. Exact --dir matching in has_worker_for_repo_issue(): replace
   index($0, path) > 0 (substring match) with a regex that anchors
   path as a whole --dir argument (space or = form, optional trailing
   slash). Prevents sibling-path false positives such as /tmp/aidevops
   matching /tmp/aidevops-tools.

Add four regression tests covering the new behaviours:
- prefetch_active_workers excludes supervisor pulse
- prefetch_active_workers count matches count_active_workers
- has_worker_for_repo_issue rejects sibling-path match
- has_worker_for_repo_issue accepts exact path match

Closes #4282
@alex-solovyev alex-solovyev force-pushed the bugfix/3543-runway-json-injection branch from eeff290 to 2e37246 Compare March 13, 2026 18:31
@github-actions
Copy link
Contributor

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 414 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Fri Mar 13 18:32:23 UTC 2026: Code review monitoring started
Fri Mar 13 18:32:24 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 414

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 414
  • VULNERABILITIES: 0

Generated on: Fri Mar 13 18:32:27 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

@sonarqubecloud
Copy link

@alex-solovyev alex-solovyev merged commit fd0a3e6 into main Mar 13, 2026
12 checks passed
@alex-solovyev alex-solovyev deleted the bugfix/3543-runway-json-injection branch March 13, 2026 18:34
@marcusquinn marcusquinn added the review-feedback-scanned Merged PR already scanned for quality feedback label Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Auto-created from TODO.md tag review-feedback-scanned Merged PR already scanned for quality feedback

Projects

None yet

Development

Successfully merging this pull request may close these issues.

quality-debt: .agents/scripts/runway-helper.sh — PR #1015 review feedback (critical)

2 participants