---
title: "Set private repo fork PR workflow settings for a repository"
method: PUT
path: "/repos/{owner}/{repo}/actions/permissions/fork-pr-workflows-private-repos"
tags: ["actions"]
---

# Set private repo fork PR workflow settings for a repository

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

## Request

- Base URL: `https://api.github.com`
- URL: `https://api.github.com/repos/{owner}/{repo}/actions/permissions/fork-pr-workflows-private-repos`
- Auth: none declared

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.

## Path parameters

- `owner` string, required
- `repo` string, required

## Request body

- ActionsForkPrWorkflowsPrivateReposRequest
  - `run_workflows_from_fork_pull_requests` boolean, required: Whether workflows triggered by pull requests from forks are allowed to run on private repositories.
  - `send_write_tokens_to_workflows` boolean: 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_variables` boolean: Whether to make secrets and variables available to workflows triggered by pull requests from forks.
  - `require_approval_for_fork_pr_workflows` boolean: Whether workflows triggered by pull requests from forks require approval from a repository administrator to run.

## Response `204`

Empty response for successful settings update

## Other responses

- `404`: Resource not found
- `422`: Validation failed, or the endpoint has been spammed.

---

[API](https://skmtc.dev/github/apis/rest.md) · [All operations](https://skmtc.dev/github/apis/rest/llms.txt) · [OpenAPI document](https://skmtc.dev/github/apis/rest/revisions/309e30296b21?raw)
