Following this documentation: https://docs.github.com/en/free-pro-team@latest/rest/reference/actions#list-repository-workflows
Fetching /repos/{owner}/{repo}/actions/workflows
should return the list of all workflows for a repository. This works fine for public repositories.
But, I couldn't figure out how to do it for private repositories, there is no token
header or anything similar that might be used for authentication.
Does anyone have an example for private repositories?