---
title: "Set private repo fork PR workflow settings for an enterprise"
method: PUT
path: "/enterprises/{enterprise}/actions/permissions/fork-pr-workflows-private-repos"
tags: ["enterprise-admin"]
---

# Set private repo fork PR workflow settings for an enterprise

`PUT /enterprises/{enterprise}/actions/permissions/fork-pr-workflows-private-repos`

Sets the settings for whether workflows from fork pull requests can run on private repositories in an enterprise.

## Path parameters

- `enterprise` 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.net/github/apis/github-v3-rest-api-3.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-3/versions/dc0584ac4e13/schema)
