From 29ea0522f5fad25209504cd9e540316144e398ec Mon Sep 17 00:00:00 2001 From: Paras Jain Date: Sun, 12 Jun 2022 19:32:05 +0000 Subject: [PATCH] Delete existing service account keys --- .github/workflows/pytest.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 1dc2771f5..864d0e353 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -100,6 +100,8 @@ jobs: with: project_id: '${{ secrets.GCP_PROJECT_ID }}' export_default_credentials: true + - name: Delete existing service account keys + run: (gcloud iam service-accounts keys list --project skyplane-ci --iam-account skyplane-manual@skyplane-ci.iam.gserviceaccount.com --format="value(KEY_ID)" | xargs -I {} gcloud iam service-accounts keys delete --project skyplane-ci --iam-account skyplane-manual@skyplane-ci.iam.gserviceaccount.com -q {}) || true - name: Run cloud tests run: | poetry run skyplane init -y