Sample - GitHub REST API
GET/orgs/{org}/actions/permissions/fork-pr-contributor-approval

Get fork PR contributor approval permissions for an organization

Gets the fork PR contributor approval policy for an organization.

OAuth app tokens and personal access tokens (classic) need the admin:org scope or the "Actions policies" fine-grained permission to use this endpoint.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter
orgstringrequired
The organization name. The name is not case sensitive.

2 status codes
200Response
approval_policystringrequired
The policy that controls when fork PR workflows require approval from a maintainer.
Allowed:first_time_contributors_new_to_githubfirst_time_contributorsall_external_contributors
404Resource not found
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 404 is returned: Resource not found.