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

Denys Volokh

07/20/2022, 2:39 PM
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

Kevin Kho

07/20/2022, 9:25 PM
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
6 Views