Home / Servers / GitHub API / actions_set_private_repo_fork_pr_workflows_settings_reposito
Set private repo fork PR workflow settings for a repository
An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.
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]
Name on the gateway: github_api__actions_set_private_repo_fork_pr_workflows_settings_reposito · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
owner required | string | The account owner of the repository. The name is not case… |
repo required | string | The name of the repository without the .git extension. The… |
run_workflows_from_fork_pull_requests required | boolean | Whether workflows triggered by pull requests from forks are allowed to run on… |
send_write_tokens_to_workflows | boolean | Whether GitHub Actions can create pull requests or submit approving pull… |
send_secrets_and_variables | boolean | Whether to make secrets and variables available to workflows triggered by pull… |
require_approval_for_fork_pr_workflows | boolean | Whether workflows triggered by pull requests from forks require approval from… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "github_api__actions_set_private_repo_fork_pr_workflows_settings_reposito",
"arguments": {
"owner": "…",
"repo": "…",
"run_workflows_from_fork_pull_requests": true
}
}Or connect the GitHub API server directly, which lists 1,221 tools including this one:
claude mcp add --transport http hj-github-api https://mcp.hjlabs.in/mcp/github-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the set private repo fork pr workflow settings for a repository tool with owner set to ….