Repository navigation
Pass git argument arrays to @actions/exec in pr-bot updateReviewers - #41524
Conversation
|
/gemini review |
There was a problem hiding this comment.
📋 Review Summary
This PR refactors openPull in scripts/ci/pr-bot/updateReviewers.ts to pass argument arrays to @actions/exec instead of interpolating file paths and branch names into single command strings. The change cleanly resolves the CodeQL js/shell-command-injection-from-environment alert while preserving the existing git command behavior.
🔍 General Feedback
- The argument arrays passed to
exec.exec("git", [...])match the original command invocations and follow@actions/execbest practices.
💡 Tip: Comment /gemini review on this pull request to trigger a new Gemini code review.
|
Assigning reviewers: R: @shunping added as fallback since no labels match configuration Note: If you would like to opt out of this review, comment Available commands:
The PR bot will only process comments in the main thread (not review comments). |
Note: this PR was auto-generated by tooling. Before moving it out of draft, the author has done a full review of the PR, specifically evaluating it on the following criteria:
CodeQL/zizmor) onmasterwithout altering intended public API or workflow semanticsIf you have concerns with the PR or with the underlying methodology used to generate this, please comment below - they will be addressed by the author not the tooling :)
Summary
js/shell-command-injection-from-environment(CWE-078/CWE-088, Medium/Warning, alert #63) inscripts/ci/pr-bot/updateReviewers.ts.string[]argument arrays to@actions/exec(exec.exec("git", [...])) inopenPullrather than interpolatingPATH_TO_CONFIG_FILEand branch names into single command strings.Verification
scripts/ci/pr-bot