hello everyone, how can i use gcp credentials on t...
# ask-community
h
hello everyone, how can i use gcp credentials on the github ci/cd for dagster cloud? more explanation on the thread
i created a github secret with the credentials JSON and on
deploy.yml
and
branch_deployments.yml
i put on env:
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
like
but in the execution of the job in github, at the "Updating code locations" stage i receive the following error:
Copy code
Error loading hyprster: {'__typename': 'PythonError', 'message': 'google.auth.exceptions.DefaultCredentialsError: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS or explicitly create credentials and re-run the application. For more information
d
Hi, putting the secret in your github action won't help when Dagster loads your code in your cluster. You can learn more about setting environment variables in Dagster Cloud here: https://docs.dagster.io/dagster-cloud/developing-testing/environment-variables-and-secrets