run-gemini-cli does not inherit authentication from google-github-actions/auth
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 42/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- github-actions, google-cloud, typescript
- 領域
- authentication, ci-cd
調査の方向性
まず、credentials_json を指定した google-github-actions/auth@v3 に続いて実行される run-gemini-cli の認証処理を追跡し、報告された workflow とログを再現ケースとして使用します。GOOGLE_APPLICATION_CREDENTIALS が Vertex AI で認識されるか、また警告と Gemini CLI の認証失敗が解消されるかを確認します。リポジトリにテストが用意されている場合は、必要な動作をテストに記録します。
索引モデルが issue の本文から書いたものです。
説明
Summary
When using google-github-actions/auth@v3 with credentials_json before run-gemini-cli@v0, the action does not inherit the authentication and emits the following warning:
No authentication method provided. Please provide one of 'gemini_api_key', 'google_api_key', or 'gcp_workload_identity_provider'.
Even though the GOOGLE_APPLICATION_CREDENTIALS environment variable is correctly set by the auth action, run-gemini-cli does not recognize it and requires explicit authentication parameters.
Expected Behavior
The action should recognize authentication established by google-github-actions/auth@v3, similar to how other Google GitHub Actions work (e.g., google-github-actions/deploy-cloudrun).
Observed Behavior
- The action emits "No authentication method provided" warning
- Gemini CLI fails to authenticate with Vertex AI
- The
ghCLI commands within Gemini sandbox also fail to authenticate (even withGH_TOKENenv var andsandbox: false)
Workflow Configuration
- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v3
with:
credentials_json: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS_POC }}
create_credentials_file: true
- name: Automatic PR Review with Gemini
uses: google-github-actions/run-gemini-cli@v0
with:
use_vertex_ai: true
gcp_project_id: 'my-project'
gcp_location: 'global'
gemini_debug: true
settings: |
{
"model": "gemini-3-pro-preview",
"sandbox": false
}
prompt: |
Review this PR...
env:
GH_TOKEN: ${{ secrets.GH_PAT }}
Logs
The environment shows auth was successful:
GOOGLE_APPLICATION_CREDENTIALS: /home/runner/work/.../gha-creds-xxx.json
CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE: /home/runner/work/.../gha-creds-xxx.json
But the action still warns about missing authentication.
Workaround
Currently, users must either:
- Use
gcp_workload_identity_providerparameter (requires WIF setup) - Pin to an older version (e.g.,
@v0.1.17)
Environment
- Action version: v0.1.19 / v0.1.20
- Runner: ubuntu-latest
- Auth action: google-github-actions/auth@v3
Impact
This is a breaking change for users who were previously using credentials_json with the auth action. The action should either:
- Recognize
GOOGLE_APPLICATION_CREDENTIALSenvironment variable - Document that
gcp_workload_identity_provideris now required
- 主要言語
- TypeScript
- スター
- 2.1k
- フォーク
- 285
- 平均マージ
- 8時間 8分
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
google-github-actions/run-gemini-cli のほかの issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
google-github-actions/run-gemini-cli の issue をすべて見る
似ている issue
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
Crush オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
ElementsProject/cln-application#167 · コメント 1 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Quantco/pnpm-licenses#17 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100