Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

adamfweidman
Copy link
Collaborator

TLDR

Recommended fix from previous Nighty run is to explicitly set tag for first publish.

https://github.com/google-gemini/gemini-cli/actions/runs/18468202923/job/52627225824
Error from previous Nightly:

npm notice Publishing to https://wombat-dressing-room.appspot.com/ with tag false and default access
npm error code E500
npm error 500 Internal Server Error - PUT https://wombat-dressing-room.appspot.com/@google%2fgemini-cli-a2a-server - 
npm error   ===============================
npm error   Publish service error
npm error   -------------------------------
npm error   not supported yet. package is rather strange. its not new and has no latest version
npm error   ===============================
npm error   
npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2025-10-13T16_27_17_508Z-debug-0.log

@adamfweidman adamfweidman requested a review from a team as a code owner October 13, 2025 17:30
Copy link
Contributor

Summary of Changes

Hello @adamfweidman, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses a critical publishing failure for the '@google/gemini-cli-a2a-server' package within the CI/CD pipeline. The change ensures that the 'npm publish' command for this specific package now explicitly uses a provided tag, rather than attempting to publish without one, which previously resulted in a 500 Internal Server Error. This fix is essential for the successful release and availability of the 'a2a-server' component.

Highlights

  • Publishing Fix: Resolved an 'npm publish' error (500 Internal Server Error) encountered during Nightly runs for the '@google/gemini-cli-a2a-server' package, which occurred because the package was new and had no 'latest' version.
  • GitHub Actions Workflow Update: Modified the 'publish-release' GitHub Action to explicitly set the 'npm-tag' input when publishing the '@google/gemini-cli-a2a-server' package, addressing the issue where using '--no-tag' was causing publication failures for new packages.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
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 correctly addresses a nightly build failure by adding an explicit --tag when publishing the a2a-server package. However, the current implementation introduces a critical command injection vulnerability by directly using a workflow input within a shell command. This vulnerability should be remediated by passing the input as an environment variable to the step instead.

npm publish --dry-run --workspace="@google/gemini-cli-a2a-server" --no-tag
else
npm publish --workspace="@google/gemini-cli-a2a-server" --no-tag
npm publish --workspace="@google/gemini-cli-a2a-server" --tag "${{ inputs.npm-tag }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

critical

Injecting ${{ inputs.npm-tag }} directly into the shell script creates a command injection vulnerability. A malicious tag value (e.g., foo\" ; rm -rf / #) could be used to execute arbitrary commands. To mitigate this, you should pass the input as an environment variable to the step using the env keyword, and then reference the environment variable in your script (e.g., ... --tag \"$NPM_TAG\").

Example of a secure implementation:

- name: Publish a2a-server
  env:
    NPM_TAG: ${{ inputs.npm-tag }}
  run: |
    # ...
    npm publish --workspace="@google/gemini-cli-a2a-server" --tag "$NPM_TAG"
    # ...

Copy link

Size Change: -2 B (0%)

Total Size: 17.8 MB

ℹ️ View Unchanged
Filename Size Change
./bundle/gemini.js 17.8 MB -2 B (0%)
./bundle/sandbox-macos-permissive-closed.sb 1.03 kB 0 B
./bundle/sandbox-macos-permissive-open.sb 830 B 0 B
./bundle/sandbox-macos-permissive-proxied.sb 1.31 kB 0 B
./bundle/sandbox-macos-restrictive-closed.sb 3.29 kB 0 B
./bundle/sandbox-macos-restrictive-open.sb 3.36 kB 0 B
./bundle/sandbox-macos-restrictive-proxied.sb 3.56 kB 0 B

compressed-size-action

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.