GET
/repos/{owner}/{repo}/actions/policiesList repository Actions policies
Lists Actions policies that apply to a repository. Use has_parents to include policies configured at higher levels, and page and per_page to paginate the results.
ownerstringrequired
The account owner of the repository; the name is not case-sensitive.
repostringrequired
The repository name without the `.git` extension; the name is not case-sensitive.
per_pageintegeroptional
Number of results per page, up to 100. Defaults to 30 when omitted.
pageintegeroptional
Page number of results to fetch. Defaults to 1 when omitted.
has_parentsbooleanoptional
Whether to include policies configured at higher levels that apply to this repository. Defaults to true when omitted.
200Returns the total number of applicable Actions policies and an array of policy objects.
total_countintegerrequired
The total number of Actions policies.
policiesarray<ActionsPolicy>required
An array of Actions policies.
404Returned when the repository cannot be found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
500Returned when an internal server error occurs.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 404 is returned when the repository cannot be found. A 500 indicates an internal server error; per_page accepts a maximum of 100 results per page.