{"meta":{"title":"GitHub Actions 정책에 대한 REST API 엔드포인트","intro":"REST API를 사용하여 .에 대한 GitHub Actions정책을 보고 관리합니다.","product":"REST API","breadcrumbs":[{"href":"/ko/rest","title":"REST API"},{"href":"/ko/rest/actions","title":"작업"},{"href":"/ko/rest/actions/policies","title":"동작 정책"}],"documentType":"article"},"body":"# GitHub Actions 정책에 대한 REST API 엔드포인트\n\nREST API를 사용하여 .에 대한 GitHub Actions정책을 보고 관리합니다.\n\n> [!NOTE]\n> Most endpoints use `Authorization: Bearer <YOUR-TOKEN>` and `Accept: application/vnd.github+json` headers, plus `X-GitHub-Api-Version: 2026-03-10`. Curl examples below omit these standard headers for brevity.\n\n## List organization Actions policies\n\n```\nGET /orgs/{org}/actions/policies\n```\n\nList all Actions policies for an organization.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`org`** (string) (required)\n  The organization name. The name is not case sensitive.\n\n- **`per_page`** (integer)\n  The number of results per page (max 100). For more information, see \"Using pagination in the REST API.\"\n  Default: `30`\n\n- **`page`** (integer)\n  The page number of the results to fetch. For more information, see \"Using pagination in the REST API.\"\n  Default: `1`\n\n- **`has_parents`** (boolean)\n  Include policies configured at higher levels that apply to this organization\n  Default: `true`\n\n### HTTP response status codes\n\n- **200** - OK\n\n- **404** - Resource not found\n\n- **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/orgs/ORG/actions/policies\n```\n\n**Response schema (Status: 200):**\n\n* `total_count`: required, integer\n* `policies`: required, array of `Actions Policy`:\n  * `id`: required, integer\n  * `name`: required, string\n  * `target`: required, string, enum: `actions`\n  * `source_type`: required, string, enum: `Repository`, `Organization`, `Enterprise`\n  * `source`: required, string\n  * `enforcement`: required, string, enum: `disabled`, `active`, `evaluate`\n  * `conditions`: any of:\n    * **Repository Actions policy conditions**\n    * **Organization Actions policy conditions**\n    * **Enterprise Actions policy conditions**\n  * `rules`: array of object\n  * `node_id`: string\n  * `_links`: object:\n    * `self`: object:\n      * `href`: string\n    * `html`: object:\n      * `href`: string\n  * `created_at`: string, format: date-time\n  * `updated_at`: string, format: date-time\n\n## Create an organization Actions policy\n\n```\nPOST /orgs/{org}/actions/policies\n```\n\nCreate an Actions policy for an organization.\nOmitting workflow_path targets all workflows without storing an explicit condition.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`org`** (string) (required)\n  The organization name. The name is not case sensitive.\n\n#### Body parameters\n\n- **`name`** (string) (required)\n  The name of the policy.\n\n- **`enforcement`** (string) (required)\n  The enforcement level of the ruleset. evaluate allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (evaluate is only available with GitHub Enterprise).\n  Can be one of: `disabled`, `active`, `evaluate`\n\n- **`conditions`** (object)\n  Conditions for an organization Actions policy. The conditions object should contain one of\nrepository_name, repository_id, or repository_property, and may also contain workflow_path.\n  - **`Repository ruleset conditions for repository names`** (object)\n    Parameters for a repository name condition\n    - **`repository_name`** (object) (required)\n      - **`include`** (array of strings)\n        Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts ~ALL to include all repositories.\n      - **`exclude`** (array of strings)\n        Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.\n      - **`protected`** (boolean)\n        Whether renaming of target repositories is prevented.\n    - **`workflow_path`** (object)\n      - **`include`** (array of strings) (required)\n        Array of workflow file paths or glob patterns to include. An empty array includes all\nworkflows not matched by an excluded pattern. Use ~ALL by itself to include all workflows.\n~ALL cannot be combined with other included patterns.\n      - **`exclude`** (array of strings) (required)\n        Array of workflow file paths or glob patterns to exclude. The condition will not pass\nif any of these patterns match. ~ALL is not allowed in this array.\n  - **`Repository ruleset conditions for repository IDs`** (object)\n    Parameters for a repository ID condition\n    - **`repository_id`** (object) (required)\n      - **`repository_ids`** (array of integers)\n        The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.\n    - **`workflow_path`** (object)\n      - **`include`** (array of strings) (required)\n        Array of workflow file paths or glob patterns to include. An empty array includes all\nworkflows not matched by an excluded pattern. Use ~ALL by itself to include all workflows.\n~ALL cannot be combined with other included patterns.\n      - **`exclude`** (array of strings) (required)\n        Array of workflow file paths or glob patterns to exclude. The condition will not pass\nif any of these patterns match. ~ALL is not allowed in this array.\n  - **`Repository ruleset conditions for repository properties`** (object)\n    Parameters for a repository property condition\n    - **`repository_property`** (object) (required)\n      - **`include`** (array of objects)\n        The repository properties and values to include. All of these properties must match for the condition to pass.\n        - **`name`** (string) (required)\n          The name of the repository property to target\n        - **`property_values`** (array of strings) (required)\n          The values to match for the repository property\n        - **`source`** (string)\n          The source of the repository property. Defaults to 'custom' if not specified.\n          Can be one of: `custom`, `system`\n      - **`exclude`** (array of objects)\n        The repository properties and values to exclude. The condition will not pass if any of these properties match.\n        - **`name`** (string) (required)\n          The name of the repository property to target\n        - **`property_values`** (array of strings) (required)\n          The values to match for the repository property\n        - **`source`** (string)\n          The source of the repository property. Defaults to 'custom' if not specified.\n          Can be one of: `custom`, `system`\n    - **`workflow_path`** (object)\n      - **`include`** (array of strings) (required)\n        Array of workflow file paths or glob patterns to include. An empty array includes all\nworkflows not matched by an excluded pattern. Use ~ALL by itself to include all workflows.\n~ALL cannot be combined with other included patterns.\n      - **`exclude`** (array of strings) (required)\n        Array of workflow file paths or glob patterns to exclude. The condition will not pass\nif any of these patterns match. ~ALL is not allowed in this array.\n\n- **`rules`** (array of objects)\n  An array of rules within the policy.\n  - **`restrict_actions_actors`** (object)\n    Choose specific actors that are authorized to trigger Actions workflows.\n    - **`type`** (string) (required)\n      Can be one of: `restrict_actions_actors`\n    - **`parameters`** (object)\n      - **`allowed_actors`** (array of objects) (required)\n        Select the actors who can run Actions workflows.\n        - **`id`** (integer) (required)\n          ID of the actor authorized to trigger Actions workflows.\n        - **`type`** (string) (required)\n          The type of the actor\n          Can be one of: `User`, `Bot`, `Team`, `BusinessTeam`, `EnterpriseTeam`, `IntegrationInstallation`, `App`, `RepositoryRole`\n  - **`restrict_action_events`** (object)\n    Choose specific GitHub events that will trigger Actions workflows.\n    - **`type`** (string) (required)\n      Can be one of: `restrict_action_events`\n    - **`parameters`** (object)\n      - **`allowed_events`** (array of strings) (required)\n        Select the events that can trigger Actions workflows.\nSupported values are: branch_protection_rule, check_run, check_suite, create, delete, deployment, deployment_status, discussion, discussion_comment, fork, gollum, image_version, issue_comment, issues, label, merge_group, milestone, page_build, project, project_card, project_column, public, pull_request, pull_request_review, pull_request_review_comment, pull_request_target, push, registry_package, release, repository_dispatch, schedule, status, watch, workflow_call, workflow_dispatch, workflow_run\n\n### HTTP response status codes\n\n- **201** - Created\n\n- **404** - Resource not found\n\n- **422** - Validation failed, or the endpoint has been spammed.\n\n- **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X POST \\\n  https://api.github.com/orgs/ORG/actions/policies \\\n  -d '{\n  \"name\": \"Require approved actors\",\n  \"enforcement\": \"active\",\n  \"rules\": [\n    {\n      \"type\": \"restrict_actions_actors\",\n      \"parameters\": {\n        \"allowed_actors\": [\n          {\n            \"id\": 1234,\n            \"type\": \"Team\"\n          }\n        ]\n      }\n    }\n  ]\n}'\n```\n\n**Response schema (Status: 201):**\n\n* `id`: required, integer\n* `name`: required, string\n* `target`: required, string, enum: `actions`\n* `source_type`: required, string, enum: `Repository`, `Organization`, `Enterprise`\n* `source`: required, string\n* `enforcement`: required, string, enum: `disabled`, `active`, `evaluate`\n* `conditions`: any of:\n  * **Repository Actions policy conditions**\n  * **Organization Actions policy conditions**\n  * **Enterprise Actions policy conditions**\n* `rules`: array of object\n* `node_id`: string\n* `_links`: object:\n  * `self`: object:\n    * `href`: string\n  * `html`: object:\n    * `href`: string\n* `created_at`: string, format: date-time\n* `updated_at`: string, format: date-time\n\n## Get an organization Actions policy\n\n```\nGET /orgs/{org}/actions/policies/{policy_id}\n```\n\nGet a specific Actions policy for an organization.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`org`** (string) (required)\n  The organization name. The name is not case sensitive.\n\n- **`policy_id`** (integer) (required)\n  The ID of the policy.\n\n### HTTP response status codes\n\n- **200** - OK\n\n- **404** - Resource not found\n\n- **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/orgs/ORG/actions/policies/POLICY_ID\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Create an organization Actions policy](#create-an-organization-actions-policy).\n\n## Update an organization Actions policy\n\n```\nPUT /orgs/{org}/actions/policies/{policy_id}\n```\n\nUpdate an Actions policy for an organization.\nOmitting workflow_path preserves the policy's existing workflow targeting.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`org`** (string) (required)\n  The organization name. The name is not case sensitive.\n\n- **`policy_id`** (integer) (required)\n  The ID of the policy.\n\n#### Body parameters\n\n- **`name`** (string)\n  The name of the policy.\n\n- **`enforcement`** (string)\n  The enforcement level of the ruleset. evaluate allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (evaluate is only available with GitHub Enterprise).\n  Can be one of: `disabled`, `active`, `evaluate`\n\n- **`conditions`** (object)\n  Conditions for an organization Actions policy. The conditions object should contain one of\nrepository_name, repository_id, or repository_property, and may also contain workflow_path.\n  - **`Repository ruleset conditions for repository names`** (object)\n    Parameters for a repository name condition\n    - **`repository_name`** (object) (required)\n      - **`include`** (array of strings)\n        Array of repository names or patterns to include. One of these patterns must match for the condition to pass. Also accepts ~ALL to include all repositories.\n      - **`exclude`** (array of strings)\n        Array of repository names or patterns to exclude. The condition will not pass if any of these patterns match.\n      - **`protected`** (boolean)\n        Whether renaming of target repositories is prevented.\n    - **`workflow_path`** (object)\n      - **`include`** (array of strings) (required)\n        Array of workflow file paths or glob patterns to include. An empty array includes all\nworkflows not matched by an excluded pattern. Use ~ALL by itself to include all workflows.\n~ALL cannot be combined with other included patterns.\n      - **`exclude`** (array of strings) (required)\n        Array of workflow file paths or glob patterns to exclude. The condition will not pass\nif any of these patterns match. ~ALL is not allowed in this array.\n  - **`Repository ruleset conditions for repository IDs`** (object)\n    Parameters for a repository ID condition\n    - **`repository_id`** (object) (required)\n      - **`repository_ids`** (array of integers)\n        The repository IDs that the ruleset applies to. One of these IDs must match for the condition to pass.\n    - **`workflow_path`** (object)\n      - **`include`** (array of strings) (required)\n        Array of workflow file paths or glob patterns to include. An empty array includes all\nworkflows not matched by an excluded pattern. Use ~ALL by itself to include all workflows.\n~ALL cannot be combined with other included patterns.\n      - **`exclude`** (array of strings) (required)\n        Array of workflow file paths or glob patterns to exclude. The condition will not pass\nif any of these patterns match. ~ALL is not allowed in this array.\n  - **`Repository ruleset conditions for repository properties`** (object)\n    Parameters for a repository property condition\n    - **`repository_property`** (object) (required)\n      - **`include`** (array of objects)\n        The repository properties and values to include. All of these properties must match for the condition to pass.\n        - **`name`** (string) (required)\n          The name of the repository property to target\n        - **`property_values`** (array of strings) (required)\n          The values to match for the repository property\n        - **`source`** (string)\n          The source of the repository property. Defaults to 'custom' if not specified.\n          Can be one of: `custom`, `system`\n      - **`exclude`** (array of objects)\n        The repository properties and values to exclude. The condition will not pass if any of these properties match.\n        - **`name`** (string) (required)\n          The name of the repository property to target\n        - **`property_values`** (array of strings) (required)\n          The values to match for the repository property\n        - **`source`** (string)\n          The source of the repository property. Defaults to 'custom' if not specified.\n          Can be one of: `custom`, `system`\n    - **`workflow_path`** (object)\n      - **`include`** (array of strings) (required)\n        Array of workflow file paths or glob patterns to include. An empty array includes all\nworkflows not matched by an excluded pattern. Use ~ALL by itself to include all workflows.\n~ALL cannot be combined with other included patterns.\n      - **`exclude`** (array of strings) (required)\n        Array of workflow file paths or glob patterns to exclude. The condition will not pass\nif any of these patterns match. ~ALL is not allowed in this array.\n\n- **`rules`** (array of objects)\n  An array of rules within the policy.\n  - **`restrict_actions_actors`** (object)\n    Choose specific actors that are authorized to trigger Actions workflows.\n    - **`type`** (string) (required)\n      Can be one of: `restrict_actions_actors`\n    - **`parameters`** (object)\n      - **`allowed_actors`** (array of objects) (required)\n        Select the actors who can run Actions workflows.\n        - **`id`** (integer) (required)\n          ID of the actor authorized to trigger Actions workflows.\n        - **`type`** (string) (required)\n          The type of the actor\n          Can be one of: `User`, `Bot`, `Team`, `BusinessTeam`, `EnterpriseTeam`, `IntegrationInstallation`, `App`, `RepositoryRole`\n  - **`restrict_action_events`** (object)\n    Choose specific GitHub events that will trigger Actions workflows.\n    - **`type`** (string) (required)\n      Can be one of: `restrict_action_events`\n    - **`parameters`** (object)\n      - **`allowed_events`** (array of strings) (required)\n        Select the events that can trigger Actions workflows.\nSupported values are: branch_protection_rule, check_run, check_suite, create, delete, deployment, deployment_status, discussion, discussion_comment, fork, gollum, image_version, issue_comment, issues, label, merge_group, milestone, page_build, project, project_card, project_column, public, pull_request, pull_request_review, pull_request_review_comment, pull_request_target, push, registry_package, release, repository_dispatch, schedule, status, watch, workflow_call, workflow_dispatch, workflow_run\n\n### HTTP response status codes\n\n- **200** - OK\n\n- **404** - Resource not found\n\n- **422** - Validation failed, or the endpoint has been spammed.\n\n- **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PUT \\\n  https://api.github.com/orgs/ORG/actions/policies/POLICY_ID \\\n  -d '{\n  \"name\": \"Updated policy name\",\n  \"enforcement\": \"active\"\n}'\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Create an organization Actions policy](#create-an-organization-actions-policy).\n\n## Delete an organization Actions policy\n\n```\nDELETE /orgs/{org}/actions/policies/{policy_id}\n```\n\nDelete an Actions policy for an organization.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`org`** (string) (required)\n  The organization name. The name is not case sensitive.\n\n- **`policy_id`** (integer) (required)\n  The ID of the policy.\n\n### HTTP response status codes\n\n- **204** - No Content\n\n- **404** - Resource not found\n\n- **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X DELETE \\\n  https://api.github.com/orgs/ORG/actions/policies/POLICY_ID\n```\n\n**Response schema (Status: 204):**\n\n## List repository Actions policies\n\n```\nGET /repos/{owner}/{repo}/actions/policies\n```\n\nList all Actions policies for a repository.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`owner`** (string) (required)\n  The account owner of the repository. The name is not case sensitive.\n\n- **`repo`** (string) (required)\n  The name of the repository without the .git extension. The name is not case sensitive.\n\n- **`per_page`** (integer)\n  The number of results per page (max 100). For more information, see \"Using pagination in the REST API.\"\n  Default: `30`\n\n- **`page`** (integer)\n  The page number of the results to fetch. For more information, see \"Using pagination in the REST API.\"\n  Default: `1`\n\n- **`has_parents`** (boolean)\n  Include policies configured at higher levels that apply to this repository\n  Default: `true`\n\n### HTTP response status codes\n\n- **200** - OK\n\n- **404** - Resource not found\n\n- **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/repos/OWNER/REPO/actions/policies\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [List organization Actions policies](#list-organization-actions-policies).\n\n## Create a repository Actions policy\n\n```\nPOST /repos/{owner}/{repo}/actions/policies\n```\n\nCreate an Actions policy for a repository.\nOmitting workflow_path targets all workflows without storing an explicit condition.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`owner`** (string) (required)\n  The account owner of the repository. The name is not case sensitive.\n\n- **`repo`** (string) (required)\n  The name of the repository without the .git extension. The name is not case sensitive.\n\n#### Body parameters\n\n- **`name`** (string) (required)\n  The name of the policy.\n\n- **`enforcement`** (string) (required)\n  The enforcement level of the ruleset. evaluate allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (evaluate is only available with GitHub Enterprise).\n  Can be one of: `disabled`, `active`, `evaluate`\n\n- **`conditions`** (object)\n  Conditions for a repository Actions policy. The object may be empty to preserve or use the\ndefault workflow targeting, or contain only workflow_path.\n  - **``** (object)\n  - **`Actions policy workflow path condition`** (object)\n    Parameters for an Actions policy workflow path condition. Omitting workflow_path when creating\na policy targets all workflows without storing an explicit condition. Omitting it when updating a\npolicy preserves the existing workflow targeting. For new or changed workflow conditions, the API\nrequires at least one included or excluded pattern. This is validated server-side rather than by\nthis schema, which can also describe existing stored conditions.\n    - **`workflow_path`** (object) (required)\n      - **`include`** (array of strings) (required)\n        Array of workflow file paths or glob patterns to include. An empty array includes all\nworkflows not matched by an excluded pattern. Use ~ALL by itself to include all workflows.\n~ALL cannot be combined with other included patterns.\n      - **`exclude`** (array of strings) (required)\n        Array of workflow file paths or glob patterns to exclude. The condition will not pass\nif any of these patterns match. ~ALL is not allowed in this array.\n\n- **`rules`** (array of objects)\n  An array of rules within the policy.\n  - **`restrict_actions_actors`** (object)\n    Choose specific actors that are authorized to trigger Actions workflows.\n    - **`type`** (string) (required)\n      Can be one of: `restrict_actions_actors`\n    - **`parameters`** (object)\n      - **`allowed_actors`** (array of objects) (required)\n        Select the actors who can run Actions workflows.\n        - **`id`** (integer) (required)\n          ID of the actor authorized to trigger Actions workflows.\n        - **`type`** (string) (required)\n          The type of the actor\n          Can be one of: `User`, `Bot`, `Team`, `BusinessTeam`, `EnterpriseTeam`, `IntegrationInstallation`, `App`, `RepositoryRole`\n  - **`restrict_action_events`** (object)\n    Choose specific GitHub events that will trigger Actions workflows.\n    - **`type`** (string) (required)\n      Can be one of: `restrict_action_events`\n    - **`parameters`** (object)\n      - **`allowed_events`** (array of strings) (required)\n        Select the events that can trigger Actions workflows.\nSupported values are: branch_protection_rule, check_run, check_suite, create, delete, deployment, deployment_status, discussion, discussion_comment, fork, gollum, image_version, issue_comment, issues, label, merge_group, milestone, page_build, project, project_card, project_column, public, pull_request, pull_request_review, pull_request_review_comment, pull_request_target, push, registry_package, release, repository_dispatch, schedule, status, watch, workflow_call, workflow_dispatch, workflow_run\n\n### HTTP response status codes\n\n- **201** - Created\n\n- **404** - Resource not found\n\n- **422** - Validation failed, or the endpoint has been spammed.\n\n- **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X POST \\\n  https://api.github.com/repos/OWNER/REPO/actions/policies \\\n  -d '{\n  \"name\": \"Require approved actors\",\n  \"enforcement\": \"active\",\n  \"rules\": [\n    {\n      \"type\": \"restrict_actions_actors\",\n      \"parameters\": {\n        \"allowed_actors\": [\n          {\n            \"id\": 1234,\n            \"type\": \"Team\"\n          }\n        ]\n      }\n    }\n  ]\n}'\n```\n\n**Response schema (Status: 201):**\n\nSame response schema as [Create an organization Actions policy](#create-an-organization-actions-policy).\n\n## Get a repository Actions policy\n\n```\nGET /repos/{owner}/{repo}/actions/policies/{policy_id}\n```\n\nGet a specific Actions policy for a repository.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`owner`** (string) (required)\n  The account owner of the repository. The name is not case sensitive.\n\n- **`repo`** (string) (required)\n  The name of the repository without the .git extension. The name is not case sensitive.\n\n- **`policy_id`** (integer) (required)\n  The ID of the policy.\n\n### HTTP response status codes\n\n- **200** - OK\n\n- **404** - Resource not found\n\n- **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X GET \\\n  https://api.github.com/repos/OWNER/REPO/actions/policies/POLICY_ID\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Create an organization Actions policy](#create-an-organization-actions-policy).\n\n## Update a repository Actions policy\n\n```\nPUT /repos/{owner}/{repo}/actions/policies/{policy_id}\n```\n\nUpdate an Actions policy for a repository.\nOmitting workflow_path preserves the policy's existing workflow targeting.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`owner`** (string) (required)\n  The account owner of the repository. The name is not case sensitive.\n\n- **`repo`** (string) (required)\n  The name of the repository without the .git extension. The name is not case sensitive.\n\n- **`policy_id`** (integer) (required)\n  The ID of the policy.\n\n#### Body parameters\n\n- **`name`** (string)\n  The name of the policy.\n\n- **`enforcement`** (string)\n  The enforcement level of the ruleset. evaluate allows admins to test rules before enforcing them. Admins can view insights on the Rule Insights page (evaluate is only available with GitHub Enterprise).\n  Can be one of: `disabled`, `active`, `evaluate`\n\n- **`conditions`** (object)\n  Conditions for a repository Actions policy. The object may be empty to preserve or use the\ndefault workflow targeting, or contain only workflow_path.\n  - **``** (object)\n  - **`Actions policy workflow path condition`** (object)\n    Parameters for an Actions policy workflow path condition. Omitting workflow_path when creating\na policy targets all workflows without storing an explicit condition. Omitting it when updating a\npolicy preserves the existing workflow targeting. For new or changed workflow conditions, the API\nrequires at least one included or excluded pattern. This is validated server-side rather than by\nthis schema, which can also describe existing stored conditions.\n    - **`workflow_path`** (object) (required)\n      - **`include`** (array of strings) (required)\n        Array of workflow file paths or glob patterns to include. An empty array includes all\nworkflows not matched by an excluded pattern. Use ~ALL by itself to include all workflows.\n~ALL cannot be combined with other included patterns.\n      - **`exclude`** (array of strings) (required)\n        Array of workflow file paths or glob patterns to exclude. The condition will not pass\nif any of these patterns match. ~ALL is not allowed in this array.\n\n- **`rules`** (array of objects)\n  An array of rules within the policy.\n  - **`restrict_actions_actors`** (object)\n    Choose specific actors that are authorized to trigger Actions workflows.\n    - **`type`** (string) (required)\n      Can be one of: `restrict_actions_actors`\n    - **`parameters`** (object)\n      - **`allowed_actors`** (array of objects) (required)\n        Select the actors who can run Actions workflows.\n        - **`id`** (integer) (required)\n          ID of the actor authorized to trigger Actions workflows.\n        - **`type`** (string) (required)\n          The type of the actor\n          Can be one of: `User`, `Bot`, `Team`, `BusinessTeam`, `EnterpriseTeam`, `IntegrationInstallation`, `App`, `RepositoryRole`\n  - **`restrict_action_events`** (object)\n    Choose specific GitHub events that will trigger Actions workflows.\n    - **`type`** (string) (required)\n      Can be one of: `restrict_action_events`\n    - **`parameters`** (object)\n      - **`allowed_events`** (array of strings) (required)\n        Select the events that can trigger Actions workflows.\nSupported values are: branch_protection_rule, check_run, check_suite, create, delete, deployment, deployment_status, discussion, discussion_comment, fork, gollum, image_version, issue_comment, issues, label, merge_group, milestone, page_build, project, project_card, project_column, public, pull_request, pull_request_review, pull_request_review_comment, pull_request_target, push, registry_package, release, repository_dispatch, schedule, status, watch, workflow_call, workflow_dispatch, workflow_run\n\n### HTTP response status codes\n\n- **200** - OK\n\n- **404** - Resource not found\n\n- **422** - Validation failed, or the endpoint has been spammed.\n\n- **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PUT \\\n  https://api.github.com/repos/OWNER/REPO/actions/policies/POLICY_ID \\\n  -d '{\n  \"name\": \"Updated policy name\",\n  \"enforcement\": \"active\"\n}'\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Create an organization Actions policy](#create-an-organization-actions-policy).\n\n## Delete a repository Actions policy\n\n```\nDELETE /repos/{owner}/{repo}/actions/policies/{policy_id}\n```\n\nDelete an Actions policy for a repository.\n\n### Parameters\n\n#### Headers\n\n- **`accept`** (string)\n  Setting to `application/vnd.github+json` is recommended.\n\n#### Path and query parameters\n\n- **`owner`** (string) (required)\n  The account owner of the repository. The name is not case sensitive.\n\n- **`repo`** (string) (required)\n  The name of the repository without the .git extension. The name is not case sensitive.\n\n- **`policy_id`** (integer) (required)\n  The ID of the policy.\n\n### HTTP response status codes\n\n- **204** - No Content\n\n- **404** - Resource not found\n\n- **500** - Internal Error\n\n### Code examples\n\n#### Example\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X DELETE \\\n  https://api.github.com/repos/OWNER/REPO/actions/policies/POLICY_ID\n```\n\n**Response schema (Status: 204):**"}