Skip to content

chore(ci): remove dead service-account key writes - #9733

Merged
Git-on-my-level merged 1 commit into
mainfrom
codex/remove-dead-gcp-sa-workflow-steps
Jul 14, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
codex/remove-dead-gcp-sa-workflow-steps

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jul 14, 2026 •

Copy link
Copy Markdown
Member

Summary

Remove five obsolete workflow steps that decoded GCP_SERVICE_ACCOUNT into backend/google-credentials.json. The file is excluded from every Docker build context by .dockerignore, so the writes could not affect deployed images. GitHub authentication remains on GCP_CREDENTIALS; Cloud Run and Kubernetes runtime secret bindings are unchanged.

Root cause and guard

The same dead key-file materialization had accumulated across five backend deployment workflows. A static guard now asserts the .dockerignore exclusion and rejects either the old secret reference or generated filename in each workflow. The LLM-gateway workflow is explicitly mapped so its isolated changes select the guard in CI.

Verification

  • Sol final review: approved; no content P0–P2 findings after rebase.
  • backend/.venv/bin/pytest -q backend/tests/unit/test_preflight_cloud_run_deploy.py backend/tests/unit/test_workflow_contracts.py — 33 passed.
  • actionlint -shellcheck '' on the six touched workflows — passed.
  • Workflow-contract validation and isolated LLM-gateway selector — passed.
  • make preflight — 15 selected checks passed.
  • Pre-push hook — passed, including the selected 33 focused tests.

Two manual full backend/test.sh attempts reported different unrelated file failures; each was then reproduced with the prescribed runner and passed in isolation (test_activate_task_intelligence_dogfood_user.py, test_typesense_lazy_client_shim.py, and test_sync_v2.py, 159 tests). No deployment was dispatched for this workflow-only cleanup.

Review in cubic

Remove obsolete GCP_SERVICE_ACCOUNT materialization from five backend deploy workflows. The image build context ignores the generated file; authentication remains on GCP_CREDENTIALS and runtime secret bindings are unchanged. Add a static guard with CI selection coverage.
@Git-on-my-level
Git-on-my-level merged commit fabcf2e into main Jul 14, 2026
23 of 26 checks passed
@Git-on-my-level
Git-on-my-level deleted the codex/remove-dead-gcp-sa-workflow-steps branch July 14, 2026 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant