google-github-actions/Run Gemini CLI
Invoke the Gemini CLI from a GitHub Action.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 6, 2026
- License
- Apache 2.0
Pinned Snippet
uses: google-github-actions/run-gemini-cli@f77273f4c914e4bf38440cf36a0369cb64a37489 # v0.1.22tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| gcp_location | The Google Cloud location. | no | — |
| gcp_project_id | The Google Cloud project ID. | no | — |
| gcp_service_account | The Google Cloud service account email. | no | — |
| gcp_workload_identity_provider | The Google Cloud Workload Identity Provider. | no | — |
| gcp_token_format | The token format for authentication. Set to "access_token" to generate access tokens (requires service account), or set to empty string for direct WIF. Can be "access_token" or "id_token". | no | access_token |
| gcp_access_token_scopes | The access token scopes when using token_format "access_token". Comma-separated list of OAuth 2.0 scopes. | no | https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/userinfo.email,https://www.googleapis.com/auth/userinfo.profile |
| gemini_api_key | The API key for the Gemini API. | no | — |
| gemini_cli_version | The version of the Gemini CLI to install. Can be "latest", "preview", "nightly", a specific version number, or a git branch, tag, or commit. For more information, see [Gemini CLI releases](https://github.com/google-gemini/gemini-cli/blob/main/docs/releases.md). | no | latest |
| gemini_debug | Enable debug logging and output streaming. | no | — |
| gemini_model | The model to use with Gemini. | no | — |
| google_api_key | The Vertex AI API key to use with Gemini. | no | — |
| prompt | A string passed to the Gemini CLI's [`--prompt` argument](https://github.com/google-gemini/gemini-cli/blob/main/docs/get-started/configuration.md#command-line-arguments). | no | You are a helpful assistant. |
| settings | A JSON string written to `.gemini/settings.json` to configure the CLI's _project_ settings. For more details, see the documentation on [settings files](https://github.com/google-gemini/gemini-cli/blob/main/docs/get-started/configuration.md#settings-files). | no | — |
| use_gemini_code_assist | Whether to use Code Assist for Gemini model access instead of the default Gemini API key. For more information, see the [Gemini CLI documentation](https://github.com/google-gemini/gemini-cli/blob/main/docs/get-started/authentication.md). | no | false |
| use_vertex_ai | Whether to use Vertex AI for Gemini model access instead of the default Gemini API key. For more information, see the [Gemini CLI documentation](https://github.com/google-gemini/gemini-cli/blob/main/docs/get-started/authentication.md). | no | false |
| extensions | A list of Gemini CLI extensions to install. | no | — |
| upload_artifacts | Whether to upload artifacts to the github action. | no | false |
| use_pnpm | Whether or not to use pnpm instead of npm to install gemini-cli | no | false |
| workflow_name | The GitHub workflow name, used for telemetry purposes. | no | ${{ github.workflow }} |
| github_pr_number | The Pull Request number the CLI is operating on. Defaults to the event payload. | no | ${{ github.event.pull_request.number }} |
| github_issue_number | The Issue number (or comma-separated list of issue numbers) the CLI is operating on. Defaults to the event payload. | no | ${{ github.event.issue.number }} |
Outputs
| name | description |
|---|---|
| summary | The summarized output from the Gemini CLI execution. |
| error | The error output from the Gemini CLI execution, if any. |