Code: Select all
echo 'export SERVICE_ACCOUNT_DECODED="$(echo $SERVICE_ACCOUNT | base64 -di)"' >> $BASH_ENV
Code: Select all
service_account_file = json.dumps(os.environ['SERVICE_ACCOUNT_DECODED'])
# Authenticate using the service account for Google Drive
credentials = service_account.Credentials.from_service_account_file(service_account_file, scopes=SCOPES)
aber es wurde ein Fehler angezeigt
Code: Select all
File "final_script.py", line 28, in
credentials = service_account.Credentials.from_service_account_file(service_account_file, scopes=SCOPES)
File "/home/circleci/.pyenv/versions/3.8.20/lib/python3.8/site-packages/google/oauth2/service_account.py", line 260, in from_service_account_file
info, signer = _service_account_info.from_filename(
File "/home/circleci/.pyenv/versions/3.8.20/lib/python3.8/site-packages/google/auth/_service_account_info.py", line 78, in from_filename
with io.open(filename, "r", encoding="utf-8") as json_file:
OSError: [Errno 36] File name too long: '"{\\n
Wie kann ich das beheben?