Conversation
…flows An external user (AlexNova-ops) attempted prompt injection attacks against Claude triage bots via issue #1202. While the GitHub token permissions already limited the blast radius to issue operations only, the allowedTools configuration allowed gh commands to target any issue number, meaning a successful prompt injection could modify other issues. This change restricts gh issue view, gh issue edit, and gh issue comment commands to only operate on the current issue number (${{ github.event.issue.number }}), preventing cross-issue manipulation even if prompt injection succeeds.
|
Note Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughTwo GitHub Action workflow files are updated to parameterize gh command targets using the current issue number. The Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). 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 |
Deploying repomix with
|
| Latest commit: |
b9cbc5b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4477b258.repomix.pages.dev |
| Branch Preview URL: | https://fix-restrict-claude-action-a.repomix.pages.dev |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1203 +/- ##
=======================================
Coverage 87.14% 87.14%
=======================================
Files 115 115
Lines 4310 4310
Branches 998 998
=======================================
Hits 3756 3756
Misses 554 554 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Restrict
allowedToolsin Claude issue triage and similar issue workflows to only allowghcommands targeting the current issue number (${{ github.event.issue.number }}).