Skip to content

fix(vcs): confine Gerrit review configuration - #23230

Open
nijel wants to merge 3 commits into
mainfrom
review/oss-batch2-gerrit-gitreview
Open

nijel wants to merge 3 commits into
mainfrom
review/oss-batch2-gerrit-gitreview

Conversation

@nijel

@nijel nijel commented Nov 30, 2026

Copy link
Copy Markdown
Member

Reject .gitreview symlinks outside the checkout and pin review pushes to the validated Gerrit remote. Remove stale push URL and username credentials before invoking git-review.

Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-YLFLRKM6.

Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-TX5CPDCD.

Reject .gitreview symlinks outside the checkout and pin review pushes to the validated Gerrit remote. Remove stale push URL and username credentials before invoking git-review.

Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-YLFLRKM6.

Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-TX5CPDCD.
@nijel nijel added this to the 2026.12 milestone Nov 30, 2026
@nijel nijel self-assigned this Nov 30, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T08:06:51.718194Z 606ed2d New commits
🔒 Security Review ✅ Completed 2026-11-30T06:47:47.471657Z f7d46de PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

Comment thread weblate/vcs/tests/test_vcs.py Resolved
The mocked git-review invocation never reads .gitreview, so remove the unused file setup. The symlink-specific test separately covers that file. Addresses review feedback on #23230.
Use a with block for the temporary external secret in the .gitreview symlink test. This satisfies Pylint consider-using-with in the development-container lint job on #23230.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant