Skip to content

fix: read GCP WIF provider from workflow secrets - #555

Merged
Pigbibi merged 2 commits into
mainfrom
fix/use-wif-secret-in-workflows
Nov 26, 2026
Merged

Pigbibi merged 2 commits into
mainfrom
fix/use-wif-secret-in-workflows

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

AI assistance

Antigravity (Gemini)

What changed

  • Replaced hardcoded GCP Workload Identity Provider paths in 14 GitHub Actions workflows with ${{ secrets.GCP_WORKLOAD_IDENTITY_PROVIDER }} and added fail-fast checks when missing.
  • Updated tests/test_account_facts_config_sync.py to match the parameterized secret lookup.

How verified

  • git grep -n "1088907247379" returned 0 matches.
  • Validated YAML syntax across all modified workflow files.
  • Ran .venv/bin/pytest: 46 passed.

Why

Public workflows should not embed real GCP project numbers or Workload Identity Provider paths.

Risk

risk:low — Held before merge until repository secret GCP_WORKLOAD_IDENTITY_PROVIDER (and GCP_PROJECT_NUMBER if referenced) is configured by the owner.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T21:33:33.780435Z 908dfbf PR opened
🔒 Security Review ✅ Completed 2026-11-26T21:34:59.721063Z 908dfbf PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 908dfbfc99

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@qsl-ai-reviewer

Copy link
Copy Markdown

AI Code Review (opencode / google/gemini-4-hydrogen)

The PR cleanly parameterizes hardcoded GCP Workload Identity Provider paths and the GCP project number across 14 GitHub Actions workflows using repository secrets and updates the corresponding tests to use synthetic values and secret references. No high or medium severity bugs, security leaks, or missing critical tests were found in the diff, though the PR description inaccurately states that fail-fast checks were added when missing.

Reviewed commit: 980b4832f9 · Coverage: complete · Unresolved findings: false

Findings

  • [LOW] .github/workflows/sync-cloud-run-env.yml: The PR description claims fail-fast checks were added when secrets are missing, but no such checks exist in the diff. While google-github-actions/auth fails if workload_identity_provider is empty, an unset secrets.GCP_PROJECT_NUMBER will silently evaluate to an empty string in env unless guarded explicitly.
  • [LOW] tests/test_cached_stage_failure_diagnostic.py: This test file was updated to assert secrets.GCP_WORKLOAD_IDENTITY_PROVIDER, which is omitted from the PR description's 'What changed' section, and tests/test_account_facts_config_sync.py only replaces the hardcoded project number with a synthetic value rather than verifying workflow parameterization.

@Pigbibi Pigbibi added the agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation label Nov 26, 2026
@Pigbibi
Pigbibi merged commit 1d4d3c0 into main Nov 26, 2026
13 of 14 checks passed
@Pigbibi
Pigbibi deleted the fix/use-wif-secret-in-workflows branch November 26, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-approved An agent cleared this high-risk change on the current head; not an owner confirmation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant