BarkleyGitHub
Controls · POL
Markdown file

Security policy

When someone finds a problem in your app, they need a way to tell you that isn’t a public issue, because a public issue tells everyone else before you’ve had a chance to fix it.

From the 2026 sweep641 of 6,753 apps (9.5%) have a security policy. The Marketplace report has more on this.

Controls

  1. POL-1Level 1Turn on private vulnerability reporting. Settings → Advanced Security → Private vulnerability reporting → Enable. People then get a "Report a vulnerability" button on your Security and quality tab, and their report reaches you privately. You can ask questions, reject it, or accept it as a draft advisory to work in.

  2. POL-2Level 1Level markerAdd a SECURITY.md that points to it. In an organization, one SECURITY.md in its public .github repository covers every repository that doesn't have its own (see Organizations).

    SECURITY.md
    # Security policy
    
    ## Reporting a problem
    
    Please don't open a public issue. Report it privately through
    GitHub: https://github.com/OWNER/REPO/security/advisories/new
    
    I'll reply within 7 days and keep you posted until it's fixed.
    
    ## Supported versions
    
    Only the latest release gets security fixes.
  3. POL-3WithdrawnPoint the issue form there too. Withdrawn on November 27, 2026, because REPO-2 covers it: its issue form links the private report.

  4. POL-4Level 1When a report comes in, fix it in the advisory's private fork, release the fix, then publish the advisory. You can request a CVE from the advisory. If your code is also published as a package on PyPI or npm, Dependabot then alerts the projects that depend on it.

Check it worked

Open your repository's Security and quality tab while signed out. You should see the policy. Anyone who is signed in also gets a "Report a vulnerability" button on the Advisories page.

Barkley notes whether an app has a security policy.

Open the full page