Yehor Anisimov
06/10/2022, 4:42 PMFailed 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
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 youKevin Kho
06/10/2022, 4:44 PMSecret
and use get()
. The name is enough. You can also edit your post to hide the secret value if that’s a real keyYehor Anisimov
06/10/2022, 4:45 PM