Skip to content

Temporary private forks, made for GitHub Security Advisories, should have their naming convention/format documented #26520

Closed
@ScriptAutomate

Description

Code of Conduct

What article on docs.github.com is affected?

What part(s) of the article would you like to see updated?

Section needing update:

The last part of the section:

A private fork of the repository is created and shown on the advisory page.

What isn't stated here is the naming convention of the temporary, private repositories that get created. The screenshots that follow do show the naming format, as examples, but the convention itself should be included somewhere in the documentation itself.

The standard naming convention is done as so, from what I can tell, whenever you click the Start a temporary private fork button:

  • <repo>-<ghsa-draft-security-advisory-id>
  • Example:
    • GitHub Security Advisory (GHSA) draft: GHSA-1a2b-cd23-efgh
    • Draft advisory for the following repo: my-repo
    • Temp, private repo name: my-repo-ghsa-1a2b-cd23-efgh

Additional information

Other than docs, I think a feature request should be opened for the API of a repository to state whether it is a temporary fork / GHSA-related repository. Otherwise, you have to retrieve this information by querying:

  • for draft security advisories
  • whether a repo is a fork and private
  • what the name of the parent repository is
  • check the repo name for a pattern that matches a security advisory

All in order to see whether it is, for certain, a GHSA-related temp fork.

Metadata

Assignees

No one assigned

    Labels

    code securityContent related to code securitycontentThis issue or pull request belongs to the Docs Content teamneeds SMEThis proposal needs review from a subject matter expertwaiting for reviewIssue/PR is waiting for a writer's review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions