How to list workflows from a private repository #27170
-
docs.github.com
Actions - GitHub Docs//docs.github.com/en/free-pro-team@latest/rest/reference/actions Fetching this endpoint is working fine using a public repository. But how can I do this when using a private repository? There is no documentation regarding authentication and such. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The documentation you linked describes the requirement:
For generating an access token, see Creating a personal access token. Once you have it, you need to add an |
Beta Was this translation helpful? Give feedback.
-
Thank you, that wasn’t obvious at first glance due to the lack of example. I’ll give it a try. |
Beta Was this translation helpful? Give feedback.
-
Worked that way:
|
Beta Was this translation helpful? Give feedback.
The documentation you linked describes the requirement:
For generating an access token, see Creating a personal access token. Once you have it, you need to add an
Authorization
header to the HTTP request, with the contenttoken YOUR-TOKEN
.