Repository navigation
chore(ci): remove dead service-account key writes - #9733
Merged
Merged
Conversation
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.
11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Remove five obsolete workflow steps that decoded
GCP_SERVICE_ACCOUNTintobackend/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 onGCP_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
.dockerignoreexclusion 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
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.make preflight— 15 selected checks passed.Two manual full
backend/test.shattempts 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, andtest_sync_v2.py, 159 tests). No deployment was dispatched for this workflow-only cleanup.