v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
actions

Set private repo fork PR workflow settings for a repository

Sets the settings for whether workflows from fork pull requests can run on a private repository.

OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.

put/repos/{owner}/{repo}/actions/permissions/fork-pr-workflows-private-repos

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

Request body

run_workflows_from_fork_pull_requestsboolean required

Whether workflows triggered by pull requests from forks are allowed to run on private repositories.

send_write_tokens_to_workflowsboolean

Whether GitHub Actions can create pull requests or submit approving pull request reviews from a workflow triggered by a fork pull request.

send_secrets_and_variablesboolean

Whether to make secrets and variables available to workflows triggered by pull requests from forks.

require_approval_for_fork_pr_workflowsboolean

Whether workflows triggered by pull requests from forks require approval from a repository administrator to run.

Response

Empty response for successful settings update