{"meta":{"title":"Конечные точки REST API для секретов Dependabot","intro":"Используйте REST API для управления Dependabot секретами для организации или репозитория.","product":"REST API","breadcrumbs":[{"href":"/ru/rest","title":"REST API"},{"href":"/ru/rest/dependabot","title":"Dependabot"},{"href":"/ru/rest/dependabot/secrets","title":"Секреты"}],"documentType":"article"},"body":"# Конечные точки REST API для секретов Dependabot\n\nИспользуйте REST API для управления Dependabot секретами для организации или репозитория.\n\n## Сведения о Dependabot секретах\n\nВы можете создавать, обновлять, удалять и извлекать сведения о зашифрованных секретах с помощью REST API.\nСекреты позволяют хранить конфиденциальную информацию, например маркеры доступа, в репозитории, средах репозитория или организации. Для получения дополнительной информации см. [Настройка доступа к частным реестрам для Dependabot](/ru/code-security/how-tos/secure-your-supply-chain/manage-your-dependency-security/configure-access-to-private-registries#storing-credentials-for-dependabot-to-use).\n\nЭти конечные точки доступны для пользователей, прошедших проверку подлинности, OAuth apps, и GitHub Apps. Для маркеров доступа требуется \\[`repo` область для частных репозиториев и`public_repo` [областей](/ru/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps#available-scopes)]\\(/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps#available-scopes) для общедоступных репозиториев.\nGitHub Apps должен иметь `dependabot_secrets` разрешение на использование этих конечных точек. Пользователи, прошедшие проверку подлинности, должны иметь доступ к репозиторию для создания, обновления или чтения секретов, с возможностью совместной работы.\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 secrets\n\n```\nGET /orgs/{org}/dependabot/secrets\n```\n\nLists all secrets available in an organization without revealing their\nencrypted values.\nOAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.\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### HTTP response status codes\n\n* **200** - OK\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/dependabot/secrets\n```\n\n**Response schema (Status: 200):**\n\n* `total_count`: required, integer\n* `secrets`: required, array of `Dependabot Secret for an Organization`:\n  * `name`: required, string\n  * `created_at`: required, string, format: date-time\n  * `updated_at`: required, string, format: date-time\n  * `visibility`: required, string, enum: `all`, `private`, `selected`\n  * `selected_repositories_url`: string, format: uri\n\n## Get an organization public key\n\n```\nGET /orgs/{org}/dependabot/secrets/public-key\n```\n\nGets your public key, which you need to encrypt secrets. You need to\nencrypt a secret before you can create or update secrets.\nOAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.\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### HTTP response status codes\n\n* **200** - OK\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/dependabot/secrets/public-key\n```\n\n**Response schema (Status: 200):**\n\n* `key_id`: required, string\n* `key`: required, string\n\n## Get an organization secret\n\n```\nGET /orgs/{org}/dependabot/secrets/{secret_name}\n```\n\nGets a single organization secret without revealing its encrypted value.\nOAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.\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* **`secret_name`** (string) (required)\n  The name of the secret.\n\n### HTTP response status codes\n\n* **200** - OK\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/dependabot/secrets/SECRET_NAME\n```\n\n**Response schema (Status: 200):**\n\n* `name`: required, string\n* `created_at`: required, string, format: date-time\n* `updated_at`: required, string, format: date-time\n* `visibility`: required, string, enum: `all`, `private`, `selected`\n* `selected_repositories_url`: string, format: uri\n\n## Create or update an organization secret\n\n```\nPUT /orgs/{org}/dependabot/secrets/{secret_name}\n```\n\nCreates or updates an organization secret with an encrypted value. Encrypt your secret using\nLibSodium. For more information, see \"Encrypting secrets for the REST API.\"\nOAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.\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* **`secret_name`** (string) (required)\n  The name of the secret.\n\n#### Body parameters\n\n* **`encrypted_value`** (string)\n  Value for your secret, encrypted with LibSodium using the public key retrieved from the Get an organization public key endpoint.\n\n* **`key_id`** (string)\n  ID of the key you used to encrypt the secret.\n\n* **`visibility`** (string) (required)\n  Which type of organization repositories have access to the organization secret. selected means only the repositories specified by selected\\_repository\\_ids can access the secret.\n  Can be one of: `all`, `private`, `selected`\n\n* **`selected_repository_ids`** (array of integers)\n  An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the visibility is set to selected. You can manage the list of selected repositories using the List selected repositories for an organization secret, Set selected repositories for an organization secret, and Remove selected repository from an organization secret endpoints.\n\n### HTTP response status codes\n\n* **201** - Response when creating a secret\n\n* **204** - Response when updating a secret\n\n### Code examples\n\n#### Example 1: Status Code 201\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PUT \\\n  https://api.github.com/orgs/ORG/dependabot/secrets/SECRET_NAME \\\n  -d '{\n  \"encrypted_value\": \"c2VjcmV0\",\n  \"key_id\": \"012345678912345678\",\n  \"visibility\": \"selected\",\n  \"selected_repository_ids\": [\n    1296269,\n    1296280\n  ]\n}'\n```\n\n**Response schema (Status: 201):**\n\n#### Example 2: Status Code 204\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PUT \\\n  https://api.github.com/orgs/ORG/dependabot/secrets/SECRET_NAME \\\n  -d '{\n  \"encrypted_value\": \"c2VjcmV0\",\n  \"key_id\": \"012345678912345678\",\n  \"visibility\": \"selected\",\n  \"selected_repository_ids\": [\n    1296269,\n    1296280\n  ]\n}'\n```\n\n**Response schema (Status: 204):**\n\n## Delete an organization secret\n\n```\nDELETE /orgs/{org}/dependabot/secrets/{secret_name}\n```\n\nDeletes a secret in an organization using the secret name.\nOAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.\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* **`secret_name`** (string) (required)\n  The name of the secret.\n\n### HTTP response status codes\n\n* **204** - No Content\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/dependabot/secrets/SECRET_NAME\n```\n\n**Response schema (Status: 204):**\n\n## List selected repositories for an organization secret\n\n```\nGET /orgs/{org}/dependabot/secrets/{secret_name}/repositories\n```\n\nLists all repositories that have been selected when the visibility\nfor repository access to a secret is set to selected.\nOAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.\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* **`secret_name`** (string) (required)\n  The name of the secret.\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* **`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### HTTP response status codes\n\n* **200** - OK\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/dependabot/secrets/SECRET_NAME/repositories\n```\n\n**Response schema (Status: 200):**\n\n* `total_count`: required, integer\n* `repositories`: required, array of `Minimal Repository`:\n  * `id`: required, integer, format: int64\n  * `node_id`: required, string\n  * `name`: required, string\n  * `full_name`: required, string\n  * `owner`: required, `Simple User`:\n    * `name`: string or null\n    * `email`: string or null\n    * `login`: required, string\n    * `id`: required, integer, format: int64\n    * `node_id`: required, string\n    * `avatar_url`: required, string, format: uri\n    * `gravatar_id`: required, string or null\n    * `url`: required, string, format: uri\n    * `html_url`: required, string, format: uri\n    * `followers_url`: required, string, format: uri\n    * `following_url`: required, string\n    * `gists_url`: required, string\n    * `starred_url`: required, string\n    * `subscriptions_url`: required, string, format: uri\n    * `organizations_url`: required, string, format: uri\n    * `repos_url`: required, string, format: uri\n    * `events_url`: required, string\n    * `received_events_url`: required, string, format: uri\n    * `type`: required, string\n    * `site_admin`: required, boolean\n    * `starred_at`: string\n    * `user_view_type`: string\n  * `private`: required, boolean\n  * `html_url`: required, string, format: uri\n  * `description`: required, string or null\n  * `fork`: required, boolean\n  * `url`: required, string, format: uri\n  * `archive_url`: required, string\n  * `assignees_url`: required, string\n  * `blobs_url`: required, string\n  * `branches_url`: required, string\n  * `collaborators_url`: required, string\n  * `comments_url`: required, string\n  * `commits_url`: required, string\n  * `compare_url`: required, string\n  * `contents_url`: required, string\n  * `contributors_url`: required, string, format: uri\n  * `deployments_url`: required, string, format: uri\n  * `downloads_url`: required, string, format: uri\n  * `events_url`: required, string, format: uri\n  * `forks_url`: required, string, format: uri\n  * `git_commits_url`: required, string\n  * `git_refs_url`: required, string\n  * `git_tags_url`: required, string\n  * `git_url`: string\n  * `issue_comment_url`: required, string\n  * `issue_events_url`: required, string\n  * `issues_url`: required, string\n  * `keys_url`: required, string\n  * `labels_url`: required, string\n  * `languages_url`: required, string, format: uri\n  * `merges_url`: required, string, format: uri\n  * `milestones_url`: required, string\n  * `notifications_url`: required, string\n  * `pulls_url`: required, string\n  * `releases_url`: required, string\n  * `ssh_url`: string\n  * `stargazers_url`: required, string, format: uri\n  * `statuses_url`: required, string\n  * `subscribers_url`: required, string, format: uri\n  * `subscription_url`: required, string, format: uri\n  * `tags_url`: required, string, format: uri\n  * `teams_url`: required, string, format: uri\n  * `trees_url`: required, string\n  * `clone_url`: string\n  * `mirror_url`: string or null\n  * `hooks_url`: required, string, format: uri\n  * `svn_url`: string\n  * `homepage`: string or null\n  * `language`: string or null\n  * `forks_count`: integer\n  * `stargazers_count`: integer\n  * `watchers_count`: integer\n  * `size`: integer\n  * `default_branch`: string\n  * `open_issues_count`: integer\n  * `is_template`: boolean\n  * `topics`: array of string\n  * `has_issues`: boolean\n  * `has_projects`: boolean\n  * `has_wiki`: boolean\n  * `has_pages`: boolean\n  * `has_discussions`: boolean\n  * `has_pull_requests`: boolean\n  * `pull_request_creation_policy`: string, enum: `all`, `collaborators_only`\n  * `archived`: boolean\n  * `disabled`: boolean\n  * `visibility`: string\n  * `pushed_at`: string or null, format: date-time\n  * `created_at`: string or null, format: date-time\n  * `updated_at`: string or null, format: date-time\n  * `permissions`: object:\n    * `admin`: boolean\n    * `maintain`: boolean\n    * `push`: boolean\n    * `triage`: boolean\n    * `pull`: boolean\n  * `role_name`: string\n  * `temp_clone_token`: string\n  * `delete_branch_on_merge`: boolean\n  * `subscribers_count`: integer\n  * `network_count`: integer\n  * `code_of_conduct`: `Code Of Conduct`:\n    * `key`: required, string\n    * `name`: required, string\n    * `url`: required, string, format: uri\n    * `body`: string\n    * `html_url`: required, string or null, format: uri\n  * `license`: object or null:\n    * `key`: string\n    * `name`: string\n    * `spdx_id`: string\n    * `url`: string or null\n    * `node_id`: string\n  * `forks`: integer\n  * `open_issues`: integer\n  * `watchers`: integer\n  * `allow_forking`: boolean\n  * `web_commit_signoff_required`: boolean\n  * `security_and_analysis`: object or null:\n    * `advanced_security`: object:\n      * `status`: string, enum: `enabled`, `disabled`\n    * `code_security`: object:\n      * `status`: string, enum: `enabled`, `disabled`\n    * `dependabot_security_updates`: object:\n      * `status`: string, enum: `enabled`, `disabled`\n    * `secret_scanning`: object:\n      * `status`: string, enum: `enabled`, `disabled`\n    * `secret_scanning_push_protection`: object:\n      * `status`: string, enum: `enabled`, `disabled`\n    * `secret_scanning_non_provider_patterns`: object:\n      * `status`: string, enum: `enabled`, `disabled`\n    * `secret_scanning_ai_detection`: object:\n      * `status`: string, enum: `enabled`, `disabled`\n    * `secret_scanning_delegated_alert_dismissal`: object:\n      * `status`: string, enum: `enabled`, `disabled`\n    * `secret_scanning_delegated_bypass`: object:\n      * `status`: string, enum: `enabled`, `disabled`\n    * `secret_scanning_delegated_bypass_options`: object:\n      * `reviewers`: array of objects:\n        * `reviewer_id`: required, integer\n        * `reviewer_type`: required, string, enum: `TEAM`, `ROLE`\n        * `mode`: string, enum: `ALWAYS`, `EXEMPT`, default: `\"ALWAYS\"`\n  * `custom_properties`: object, additional properties allowed\n\n## Set selected repositories for an organization secret\n\n```\nPUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories\n```\n\nReplaces all repositories for an organization secret when the visibility\nfor repository access is set to selected. The visibility is set when you Create\nor update an organization secret.\nOAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.\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* **`secret_name`** (string) (required)\n  The name of the secret.\n\n#### Body parameters\n\n* **`selected_repository_ids`** (array of integers) (required)\n  An array of repository ids that can access the organization secret. You can only provide a list of repository ids when the visibility is set to selected. You can add and remove individual repositories using the Set selected repositories for an organization secret and Remove selected repository from an organization secret endpoints.\n\n### HTTP response status codes\n\n* **204** - No Content\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/dependabot/secrets/SECRET_NAME/repositories \\\n  -d '{\n  \"selected_repository_ids\": [\n    64780797\n  ]\n}'\n```\n\n**Response schema (Status: 204):**\n\n## Add selected repository to an organization secret\n\n```\nPUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}\n```\n\nAdds a repository to an organization secret when the visibility for\nrepository access is set to selected. The visibility is set when you Create or\nupdate an organization secret.\nOAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.\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* **`secret_name`** (string) (required)\n  The name of the secret.\n\n* **`repository_id`** (integer) (required)\n\n### HTTP response status codes\n\n* **204** - No Content when repository was added to the selected list\n\n* **409** - Conflict when visibility type is not set to selected\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/dependabot/secrets/SECRET_NAME/repositories/REPOSITORY_ID\n```\n\n**Response schema (Status: 204):**\n\n## Remove selected repository from an organization secret\n\n```\nDELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}\n```\n\nRemoves a repository from an organization secret when the visibility\nfor repository access is set to selected. The visibility is set when you Create\nor update an organization secret.\nOAuth app tokens and personal access tokens (classic) need the admin:org scope to use this endpoint.\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* **`secret_name`** (string) (required)\n  The name of the secret.\n\n* **`repository_id`** (integer) (required)\n\n### HTTP response status codes\n\n* **204** - Response when repository was removed from the selected list\n\n* **409** - Conflict when visibility type not set to selected\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/dependabot/secrets/SECRET_NAME/repositories/REPOSITORY_ID\n```\n\n**Response schema (Status: 204):**\n\n## List repository secrets\n\n```\nGET /repos/{owner}/{repo}/dependabot/secrets\n```\n\nLists all secrets available in a repository without revealing their encrypted\nvalues.\nOAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.\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### HTTP response status codes\n\n* **200** - OK\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/dependabot/secrets\n```\n\n**Response schema (Status: 200):**\n\n* `total_count`: required, integer\n* `secrets`: required, array of `Dependabot Secret`:\n  * `name`: required, string\n  * `created_at`: required, string, format: date-time\n  * `updated_at`: required, string, format: date-time\n\n## Get a repository public key\n\n```\nGET /repos/{owner}/{repo}/dependabot/secrets/public-key\n```\n\nGets your public key, which you need to encrypt secrets. You need to\nencrypt a secret before you can create or update secrets. Anyone with read access\nto the repository can use this endpoint.\nOAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint if the repository is private.\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### HTTP response status codes\n\n* **200** - OK\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/dependabot/secrets/public-key\n```\n\n**Response schema (Status: 200):**\n\nSame response schema as [Get an organization public key](#get-an-organization-public-key).\n\n## Get a repository secret\n\n```\nGET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}\n```\n\nGets a single repository secret without revealing its encrypted value.\nOAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.\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* **`secret_name`** (string) (required)\n  The name of the secret.\n\n### HTTP response status codes\n\n* **200** - OK\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/dependabot/secrets/SECRET_NAME\n```\n\n**Response schema (Status: 200):**\n\n* `name`: required, string\n* `created_at`: required, string, format: date-time\n* `updated_at`: required, string, format: date-time\n\n## Create or update a repository secret\n\n```\nPUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}\n```\n\nCreates or updates a repository secret with an encrypted value. Encrypt your secret using\nLibSodium. For more information, see \"Encrypting secrets for the REST API.\"\nOAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.\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* **`secret_name`** (string) (required)\n  The name of the secret.\n\n#### Body parameters\n\n* **`encrypted_value`** (string)\n  Value for your secret, encrypted with LibSodium using the public key retrieved from the Get a repository public key endpoint.\n\n* **`key_id`** (string)\n  ID of the key you used to encrypt the secret.\n\n### HTTP response status codes\n\n* **201** - Response when creating a secret\n\n* **204** - Response when updating a secret\n\n### Code examples\n\n#### Example 1: Status Code 201\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PUT \\\n  https://api.github.com/repos/OWNER/REPO/dependabot/secrets/SECRET_NAME \\\n  -d '{\n  \"encrypted_value\": \"c2VjcmV0\",\n  \"key_id\": \"012345678912345678\"\n}'\n```\n\n**Response schema (Status: 201):**\n\n#### Example 2: Status Code 204\n\n**Request:**\n\n```curl\ncurl -L \\\n  -X PUT \\\n  https://api.github.com/repos/OWNER/REPO/dependabot/secrets/SECRET_NAME \\\n  -d '{\n  \"encrypted_value\": \"c2VjcmV0\",\n  \"key_id\": \"012345678912345678\"\n}'\n```\n\n**Response schema (Status: 204):**\n\n## Delete a repository secret\n\n```\nDELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}\n```\n\nDeletes a secret in a repository using the secret name.\nOAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.\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* **`secret_name`** (string) (required)\n  The name of the secret.\n\n### HTTP response status codes\n\n* **204** - No Content\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/dependabot/secrets/SECRET_NAME\n```\n\n**Response schema (Status: 204):**"}