Skip to content

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

@bmonkman

Description

@bmonkman

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."

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions