commitdev/zero

Add extra logging around the curl calls in each module's check functions

bmonkman opened this issue · 0 comments

The check function in gha-setup.sh in the application modules (backend-go, backend-node, frontend-react, static-gatsby) run a script to check for binaries and then do a curl call to github to verify that the user has a token that can be used with each repository.
If this fails it just outputs false.
https://github.com/commitdev/zero-backend-node/blob/1376ac0e7ff4448d641633c0ff69f602acbeebf4/scripts/gha-setup.sh#L66-L67

If this call fails we should have a more descriptive error message like "The GitHub token entered is unable to make requests to the GitHub API for this repository. This is required for setting up GitHub Actions pipelines.\nPlease verify your token, its access, and make sure this repository has been created in your organization."