$ echo $SERVICE_ACCOUNT_DEV > ${HOME}/gcloud-service-key.json
$ gcloud auth activate-service-account --key-file ${HOME}/gcloud-service-key.json
ERROR: (gcloud.auth.activate-service-account) Could not read json file /root/gcloud-service-key.json: Expecting value: line 2 column 1 (char 1).
I checked the SERVICE_ACCOUNT_DEV json file stored in gitlab ci/cd variable but there is no issue with it.