Can a workflow badge be retrieved with the GitHub API?

81 Views Asked by At

The GitHub API documentation shows an example for retrieving repository workflows.

The response includes a badge_url field for each workflow. For example:

"badge_url": "https://github.com/octo-org/octo-repo/workflows/CI/badge.svg"

Is it possible to retrieve the badge using the GitHub API? My question arises for a scenario where I'm trying to retrieve the badge for a private repository, and it would be more convenient to use the GitHub API versus alternative approaches.

0

There are 0 best solutions below