Skip to main content

fork_pr_workflows_private_repos_settings

Creates, updates, deletes, gets or lists a fork_pr_workflows_private_repos_settings resource.

Overview

Namefork_pr_workflows_private_repos_settings
TypeResource
Idgithub.actions.fork_pr_workflows_private_repos_settings

Fields

The following fields are returned by SELECT queries:

Response

NameDatatypeDescription
require_approval_for_fork_pr_workflowsbooleanWhether workflows triggered by pull requests from forks require approval from a repository administrator to run.
run_workflows_from_fork_pull_requestsbooleanWhether workflows triggered by pull requests from forks are allowed to run on private repositories.
send_secrets_and_variablesbooleanWhether to make secrets and variables available to workflows triggered by pull requests from forks.
send_write_tokens_to_workflowsbooleanWhether GitHub Actions can create pull requests or submit approving pull request reviews from a workflow triggered by a fork pull request.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_private_repo_fork_pr_workflows_settings_repositoryselectowner, repoGets 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.
set_private_repo_fork_pr_workflows_settings_repositoryreplaceowner, repo, run_workflows_from_fork_pull_requestsSets 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ownerstringThe account owner of the repository. The name is not case sensitive.
repostringThe name of the repository without the .git extension. The name is not case sensitive.

SELECT examples

Gets 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.

SELECT
require_approval_for_fork_pr_workflows,
run_workflows_from_fork_pull_requests,
send_secrets_and_variables,
send_write_tokens_to_workflows
FROM github.actions.fork_pr_workflows_private_repos_settings
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
;

REPLACE examples

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.

REPLACE github.actions.fork_pr_workflows_private_repos_settings
SET
run_workflows_from_fork_pull_requests = {{ run_workflows_from_fork_pull_requests }},
send_write_tokens_to_workflows = {{ send_write_tokens_to_workflows }},
send_secrets_and_variables = {{ send_secrets_and_variables }},
require_approval_for_fork_pr_workflows = {{ require_approval_for_fork_pr_workflows }}
WHERE
owner = '{{ owner }}' --required
AND repo = '{{ repo }}' --required
AND run_workflows_from_fork_pull_requests = {{ run_workflows_from_fork_pull_requests }} --required;