hi there. after adding a GitHub credentials block...
# ask-community
t
hi there. after adding a GitHub credentials block via UI, I updated my prefect.yaml pull section to
access_token: "{{ prefect.blocks.github-credentials.example-token }}"
but my agent is unable to retrieve this properly and I receive a
"fatal: unable to access.. URL using bad/illegal format or missing URL"
message. what am I doing wrong here? thanks in advance
1
j
are you using a fine grained or regular github pat?
t
regular github pat. if I leave access_token null then the agent prompts me for my creds. once supplied the flow executes as expected.
j
got it. can you share your full pull step from prefect.yaml?
I don’t think we currently support the GitHubCredentials block for the pull step. instead - can you place your access token in a Secret block and reference that instead? That should work for you
t
ah interesting, yes the secret block did work. thank you 🙂
j
np!