Hi all, I’m having trouble diagnosing a GitHub storage problem. I’ve created a trivial testing flow similar to the
example script-based workflow for GitHub. I’ve deployed a k8s agent using
prefect k8s agent install
. I’ve uploaded my flow to a private GitHub repo and registered it with Prefect. And I’ve added a Cloud Secret called
GITHUB_ACCESS_TOKEN
that holds a valid GitHub personal access token. When I run my flow the agent’s GitHub storage gives me an
UnknownObjectException(404, 'Not Found')
error. If I change the flow to use a different Cloud Secret key for the PAT, such as
access_token_secret='MYKEY'
, then the agent tells me
ValueError('Local Secret "MYKEY" was not found.')
.
How can I introspect the kubernetes agent to verify that the GitHub PAT secret is being loaded from Prefect Cloud correctly?