From 9b472a691bc5144b2b1b143aa71c85efd4f8c2f9 Mon Sep 17 00:00:00 2001 From: Tyson Smith Date: Tue, 10 Dec 2024 10:54:59 -0800 Subject: [PATCH] [crashxp] Fetch crashxp-data creds on Windows --- services/grizzly-win/launch.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/grizzly-win/launch.sh b/services/grizzly-win/launch.sh index 4659aedf..43c4073a 100644 --- a/services/grizzly-win/launch.sh +++ b/services/grizzly-win/launch.sh @@ -114,7 +114,11 @@ EOF if [[ "$ADAPTER" != "reducer" ]]; then mkdir -p "$APPDATA/gcloud" set +x - retry-curl "$TASKCLUSTER_PROXY_URL/secrets/v1/secret/project/fuzzing/google-cloud-storage-creds" | python -c "import json,sys;json.dump(json.load(sys.stdin)['secret']['key'],open(r'$APPDATA/gcloud/application_default_credentials.json','w'))" + if [[ "$ADAPTER" = "crashxp" ]]; then + retry-curl "$TASKCLUSTER_PROXY_URL/secrets/v1/secret/project/fuzzing/ci-gcs-crashxp-data" | python -c "import json,sys;json.dump(json.load(sys.stdin)['secret']['key'],open(r'$APPDATA/gcloud/application_default_credentials.json','w'))" + else + retry-curl "$TASKCLUSTER_PROXY_URL/secrets/v1/secret/project/fuzzing/google-cloud-storage-creds" | python -c "import json,sys;json.dump(json.load(sys.stdin)['secret']['key'],open(r'$APPDATA/gcloud/application_default_credentials.json','w'))" + fi set -x fi