diff --git a/packages/gcp-cloud-run/src/utils/get-valid-secrets.ts b/packages/gcp-cloud-run/src/utils/get-valid-secrets.ts index 11c979c9..97000dd2 100644 --- a/packages/gcp-cloud-run/src/utils/get-valid-secrets.ts +++ b/packages/gcp-cloud-run/src/utils/get-valid-secrets.ts @@ -6,7 +6,7 @@ export function getValidSecrets(secrets?: string[] | Record): st } if (!Array.isArray(secrets)) { - secrets = Object.values(secrets).map((secret) => `${secret}=${secrets[secret]}`) + secrets = Object.keys(secrets).map((secret) => `${secret}=${secrets[secret]}`) } return secrets.map((secret) => { diff --git a/packages/gcp-functions/src/utils/get-valid-secrets.ts b/packages/gcp-functions/src/utils/get-valid-secrets.ts index 11c979c9..97000dd2 100644 --- a/packages/gcp-functions/src/utils/get-valid-secrets.ts +++ b/packages/gcp-functions/src/utils/get-valid-secrets.ts @@ -6,7 +6,7 @@ export function getValidSecrets(secrets?: string[] | Record): st } if (!Array.isArray(secrets)) { - secrets = Object.values(secrets).map((secret) => `${secret}=${secrets[secret]}`) + secrets = Object.keys(secrets).map((secret) => `${secret}=${secrets[secret]}`) } return secrets.map((secret) => {