Pablo Recio
05/15/2024, 7:20 AMRuntimeError: Failed to clone repository '<https://github.com/pathtomyrepo.git>' with exit code 128.
. I wonder if I am not using the right permissions when creating the Github PAT?Marvin
05/15/2024, 7:20 AMYour Profile->Developer Settings->Personal access tokens->Fine-grained token
and generate a new token.
3. Under Repository access, choose "Only select repositories" and grant the token permissions for Contents.
Make sure you have the correct repository permissions set when you create the PAT. If the repository is private, the token should be saved in an encrypted Prefect Secret block.
Here's the link to the Prefect Storage Guide related to private repositories: Prefect Storage Guide.
Please review the permissions for the GitHub PAT and if necessary, update them to grant access to Contents. After updating or confirming the token permissions, ensure you update the Prefect block with the new PAT and verify its correct deployment.
If the error persists, please check the following:
- The repository URL is in HTTPS format, not SSH.
- The Prefect block or Secret is correctly referenced in the workflow.
- The network and credentials are correctly set, without any typos or accidental characters.
If you're still experiencing issues even after these checks, it might be worth looking into any recent changes in Prefect's integration with GitHub or any issues reported by other users.Pablo Recio
05/15/2024, 7:31 AMMarvin
05/15/2024, 7:32 AM