Create Org Actions Policy Tool
create_org_actions_policy_toolCreates an organization Actions policy so you can allow events like pull_request_target and scope which workflows and repositories it covers, overriding GitHub's default blocking in public repos.
Instructions
Create an organization Actions policy.
GitHub blocks pull_request_target in public repositories by default unless an Actions event policy allows it; such a policy is made here with allowed_events ["pull_request_target", ...] and workflow_path_include naming the workflow files it covers.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"org": "<org>",
"name": "<name>",
"enforcement": "<enforcement>",
"repository_name_include": "<repository_name_include>"
},
"name": "create_org_actions_policy_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | Yes | Organization name | |
| name | Yes | Policy name | |
| enforcement | Yes | disabled, active or evaluate (evaluate is Enterprise only) | |
| allowed_actors | No | Actors ({id, type}) that may trigger them | |
| allowed_events | No | Events that may trigger the targeted workflows (GitHub event names such as pull_request_target, push) | |
| workflow_path_exclude | No | Workflow file paths or globs to skip | |
| workflow_path_include | No | Workflow file paths or globs, e.g. [".github/workflows/ci.yml"]; omitted means every workflow | |
| repository_name_exclude | No | Repository name patterns to skip | |
| repository_name_include | Yes | Repository name patterns; ["~ALL"] for all | |
| repository_name_protected | No | Also match on rename protection |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||