Denys Volokh

    Denys Volokh

    2 months ago
    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
    PREFECT__CONTEXT__SECRETS_GITHUB_ACCESS_TOKEN
    Registered flow with GitHubStorage
    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
    Failed to load and execute flow run: ValueError('Local Secret "GITHUB_ACCESS_TOKEN" was not found.')
    Kevin Kho

    Kevin Kho

    2 months ago
    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