Skip to content

Commit 9c71d66

Browse files
ci: remove manual AGY auth token seeding from cloudbuild in favor of secret path configuration in agy_cli_model.yaml
1 parent 1dab6ba commit 9c71d66

2 files changed

Lines changed: 8 additions & 14 deletions

File tree

cloudbuild.yaml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ steps:
2121
- name: 'us-central1-docker.pkg.dev/cloud-db-nl2sql/evalbench/eval_server:test'
2222
entrypoint: 'bash'
2323
# Decrypts the secret from Secret Manager into the DB_PASSWORD environment variable
24-
secretEnv: ['DB_PASSWORD', 'GITHUB_TOKEN', 'AGY_OAUTH_TOKEN', 'AGY_INSTALLATION_ID']
24+
secretEnv: ['DB_PASSWORD', 'GITHUB_TOKEN']
2525
args:
2626
- '-c'
2727
- |
@@ -83,15 +83,6 @@ steps:
8383
# Maps the decrypted DB_PASSWORD to the exact variable expected by gemini_cli and extension skills
8484
export CLOUD_SQL_POSTGRES_PASSWORD=$$DB_PASSWORD
8585
86-
# Seed agy auth: this step overrides the image ENTRYPOINT (entrypoint: bash),
87-
# so entrypoint.sh never runs -- seed the token files here instead. HOME is
88-
# /builder/home in a Cloud Build step, which is exactly where the harness reads.
89-
AGY_DIR="$$HOME/.gemini/antigravity-cli"
90-
mkdir -p "$$AGY_DIR"
91-
printf '%s' "$$AGY_OAUTH_TOKEN" > "$$AGY_DIR/antigravity-oauth-token"
92-
printf '%s' "$$AGY_INSTALLATION_ID" > "$$AGY_DIR/installation_id"
93-
chmod 600 "$$AGY_DIR/antigravity-oauth-token" "$$AGY_DIR/installation_id"
94-
9586
# Combine CI metadata with all available run configs
9687
for config in /workspace/evals/*run_config.yaml; do
9788
if [ -f "$config" ]; then
@@ -122,7 +113,3 @@ availableSecrets:
122113
env: 'DB_PASSWORD'
123114
- versionName: projects/$PROJECT_ID/secrets/GITHUB_TOKEN/versions/latest
124115
env: 'GITHUB_TOKEN'
125-
- versionName: projects/$PROJECT_ID/secrets/AGY_OAUTH_TOKEN/versions/latest
126-
env: 'AGY_OAUTH_TOKEN'
127-
- versionName: projects/$PROJECT_ID/secrets/AGY_INSTALLATION_ID/versions/latest
128-
env: 'AGY_INSTALLATION_ID'

evals/agy_cli_model.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ generator: agy_cli
1717

1818
model: "Gemini 3.1 Pro (High)"
1919

20+
# agy is OAuth-only. The harness seeds these auth files into the sandbox from
21+
# Secret Manager (needs ADC + secretAccessor on the build/runtime SA), so no
22+
# interactive login or entrypoint seeding is required. Values are Secret
23+
# Manager resource paths; `latest` is fine since OAuth tokens rotate.
24+
agy_oauth_token_secret: "projects/${GOOGLE_CLOUD_PROJECT}/secrets/AGY_OAUTH_TOKEN/versions/latest"
25+
agy_installation_id_secret: "projects/${GOOGLE_CLOUD_PROJECT}/secrets/AGY_INSTALLATION_ID/versions/latest"
26+
2027
env:
2128
GOOGLE_CLOUD_PROJECT: "ext-test-cloud-sql-postgres"
2229
GOOGLE_CLOUD_LOCATION: "global"

0 commit comments

Comments
 (0)