Hi Community, could you please help me to understa...
# prefect-community
d
Hi Community, could you please help me to understand where should I place GITHUB_ACCESS_TOKEN? I have running agent with kube and defined there environment variable
Copy code
PREFECT__CONTEXT__SECRETS_GITHUB_ACCESS_TOKEN
Registered flow with GitHubStorage
Copy code
flow.storage = GitHub(
    repo="company/prefect-workflows",
    path="flows/benchmarks/flow_import_index_data.py",
    ref="master",
    access_token_secret="GITHUB_ACCESS_TOKEN",
)
but when I run flow from cloud.prefect.com I am getting error
Copy code
Failed to load and execute flow run: ValueError('Local Secret "GITHUB_ACCESS_TOKEN" was not found.')
k
You would need it inside the image if you are using local secrets. Or you need that env variable inside the image.
This page is very thorough