---
title: "Enable private vulnerability reporting for a repository"
method: PUT
path: "/repos/{owner}/{repo}/private-vulnerability-reporting"
tags: ["repos"]
---

# Enable private vulnerability reporting for a repository

`PUT /repos/{owner}/{repo}/private-vulnerability-reporting`

Enables private vulnerability reporting for a repository. The authenticated user must have admin access to the repository. For more information, see "[Privately reporting a security vulnerability](https://docs.github.com/code-security/security-advisories/guidance-on-reporting-and-writing/privately-reporting-a-security-vulnerability)."

## Path parameters

- `owner` string, required
- `repo` string, required

## Response `204`

A header with no content is returned.

## Other responses

- `422` — Bad Request

---

[API](https://skmtc.net/github/apis/rest-api.md) · [All operations](https://skmtc.net/github/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/rest-api/versions/80850db290cd/schema)
