https://prefect.io logo
#prefect-community
Title
# prefect-community
y

Yehor Anisimov

06/10/2022, 4:42 PM
Hello, I am new at Prefect, trying to run flow with dbt execution and in part of initializing GitHub Storage I got error in Cloud (I renamed secret here in error):
Copy code
Failed to load and execute flow run: KeyError('The secret ghp_pZdHbjkfhkjkefefiejfefnPd1VJikfn was not found.  Please ensure that it was set correctly in your tenant: <https://docs.prefect.io/orchestration/concepts/secrets.html>')
I suppose issue in access_token_secret, I stored it in Cloud Secrets
Copy code
STORAGE = GitHub(
    repo="",
    path=f"flows/{FLOW_NAME}.py",
    access_token_secret=Secret('GITHUB_ACCESS_TOKEN').get()
)
I checked, github token is valid. Any ideas about this error? Thank you
1
k

Kevin Kho

06/10/2022, 4:44 PM
access_token_secret is a Secret name. Not the value. So no need to wrap it as a
Secret
and use
get()
. The name is enough. You can also edit your post to hide the secret value if that’s a real key
👍 1
y

Yehor Anisimov

06/10/2022, 4:45 PM
It is not the real key. I'll try now, thanks
It's working! Great thanks
6 Views