GET
/orgs/{org}/actions/policies/{policy_id}Get an organization Actions policy
Get a specific Actions policy for an organization.
orgstringrequired
The organization name. The name is not case sensitive.
policy_idintegerrequired
The ID of the policy.
200Response
idintegerrequired
The ID of the policy
namestringrequired
The name of the policy
targetstringrequired
The target of the policy
source_typestringrequired
The type of the source of the policy
sourcestringrequired
The name of the source
enforcementstringrequired
The enforcement level of the ruleset. `evaluate` allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (`evaluate` is only available with GitHub Enterprise).
conditionsobjectoptional
When workflow path targeting is available, detailed responses represent an omitted stored
workflow condition as `workflow_path` with `include` set to `["~ALL"]` and `exclude` set to `[]`.
When workflow path targeting is unavailable, an omitted stored condition remains omitted.
rulesarray<ActionsRule>optional
An array of rules within the policy
node_idstringoptional
_linksobjectoptional
created_atstringoptional
updated_atstringoptional
404Resource not found
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
500Internal Error
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 404 is returned: Resource not found. A 500 is returned: Internal Error.