google-github-actions / google-github-actions/run-gemini-cli

Support using a different gcp project for gemini api calls that isn't the workload ID project

Open
#291 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/auth area/configuration area/workflows kind/enhancement
Dominant language
TypeScript
Stars
2.1k
Forks
285
Avg merge
8h 8m
Merged PRs (30d)
1

Description

TL;DR

The way the workflow is written makes it impossible to auth via workload id to one project and configure gemini to use a different project for API calls.

My service account is in a different project than the one where the gemini api is enabled

You made this impossible because you directly reference the output of the shared workflows workload id step here: https://github.com/google-github-actions/run-gemini-cli/blob/c27fb3eed34c68e75f9dd6400384f56b1f1633d4/action.yml#L225

If you had just made that an optional input I could configure workload id myself and pass in the token, but because its hard coded like this I would have to fork the entire thing.

Expected behavior

It should be possible to set the auth project independently from the gemini project

Observed behavior

No response

Action YAML
Use with workload id as intended
Log output

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Inspect action.yml around line 225 and the workload identity configuration it references. Trace how authentication and Gemini project settings are passed; done means callers can select the authentication and Gemini API projects independently while preserving the existing workload identity flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, google-cloud, typescript
Domain
ai, ci-cd, cloud
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.