ghadvisory

command
v0.182.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: BSD-3-Clause Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command ghadvisory creates, lists and publishes a repository's GitHub security advisories (GHSA).

It exists because the fleet rule is that every GitHub write goes through a fleet program and none did this one: `gh api repos/O/R/security-advisories` was the spelling left, and the body of an advisory is PROSE, which does not belong on a command line (see ghissue). Same transport as ghissue: the token comes from a 0600 file and travels only in the Authorization header, over https, redirects refused.

References (read 2026-11-19):

https://docs.github.com/en/rest/security-advisories/repository-advisories
  POST  /repos/{owner}/{repo}/security-advisories  summary, description,
        vulnerabilities[] {package{ecosystem,name}, vulnerable_version_range,
        patched_versions, vulnerable_functions} are required; cve_id, cwe_ids,
        credits[] {login,type}, severity (critical|high|medium|low) or
        cvss_vector_string (not both) are optional; 201 with ghsa_id, html_url, state
  PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}  "state" is
        published|closed|draft; 200
  GET   /repos/{owner}/{repo}/security-advisories  200, an array
https://docs.github.com/en/rest/git/refs  GET /repos/{owner}/{repo}/git/ref/tags/{tag}: 200, or 404 when absent

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL