Skip to content

[aw-failures] Fix P0: Gemini API key (GOOGLE_API_KEY) is invalid — all Smoke Gemini runs failing since 2026-04-29 #29030

@github-actions

Description

@github-actions

Problem Statement

The GOOGLE_API_KEY secret used by the Smoke Gemini workflow is invalid or expired. All Smoke Gemini runs since at least 2026-04-29 00:21 UTC are failing immediately on first LLM call with:

HTTP 400 INVALID_ARGUMENT
reason: API_KEY_INVALID
service: generativelanguage.googleapis.com
message: "API key not valid. Please pass a valid API key."

The agent makes zero LLM calls, zero tool calls, and produces no output before terminating.

Affected Workflows and Runs

Run Branch Time (UTC) Status
§25084493525 copilot/align-docs-with-canonical-apm 2026-04-29 00:21 failure — API_KEY_INVALID
§25085302973 copilot/align-docs-with-canonical-apm 2026-04-29 00:49 failure — API_KEY_INVALID

No successful Smoke Gemini run found in the last 24h. Prior successful runs date to 2026-04-14 or earlier.

Root Cause

The GOOGLE_API_KEY repository secret is invalid. Evidence from Gemini CLI error dump files (gemini-client-error-*.json) on run 25085302973 confirms the identical error at two call sites:

  • Models.generateContentNumericalClassifierStrategy.route
  • Models.generateContentStreamTurn.run

The key is either expired, deleted, or replaced with an incorrect value.

Proposed Remediation

  1. Go to Settings → Secrets and variables → Actions for github/gh-aw
  2. Locate GOOGLE_API_KEY
  3. Rotate or replace it with a valid Gemini API key (project must have generativelanguage.googleapis.com enabled)
  4. Re-run a Smoke Gemini job to verify recovery

Success Criteria

  • Smoke Gemini run completes with conclusion: success
  • Firewall logs show generativelanguage.googleapis.com:443 receiving successful responses (no blocked/error domains)
  • Agent produces at least 1 LLM turn and a noop or valid safe output

References

References:

Note

🔒 Integrity filter blocked 6 items

The following items were blocked because they don't meet the GitHub integrity level.

To allow these resources, lower min-integrity in your GitHub frontmatter:

tools:
  github:
    min-integrity: approved  # merged | approved | unapproved | none

Generated by [aw] Failure Investigator (6h) · ● 668.8K ·

  • expires on May 6, 2026, 1:35 AM UTC

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions