1
0
mirror of synced 2025-12-23 03:44:00 -05:00
Files
docs/content/code-security/security-advisories/collaborating-in-a-temporary-private-fork-to-resolve-a-security-vulnerability.md
2021-04-30 19:30:36 -07:00

5.7 KiB

title, intro, redirect_from, versions, topics
title intro redirect_from versions topics
Collaborating in a temporary private fork to resolve a security vulnerability You can create a temporary private fork to privately collaborate on fixing a security vulnerability in your repository.
/articles/collaborating-in-a-temporary-private-fork-to-resolve-a-security-vulnerability
/github/managing-security-vulnerabilities/collaborating-in-a-temporary-private-fork-to-resolve-a-security-vulnerability
free-pro-team
*
Security

Prerequisites

Before you can collaborate in a temporary private fork, you must create a draft security advisory. For more information, see "Creating a security advisory."

Creating a temporary private fork

Anyone with admin permissions to a security advisory can create a temporary private fork.

To keep information about vulnerabilities secure, integrations, including CI, cannot access temporary private forks.

{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-security %} {% data reusables.repositories.sidebar-advisories %} 4. In the "Security Advisories" list, click the security advisory you'd like to create a temporary private fork in. Security advisory in list 5. Click New temporary private fork. New temporary private fork button

Adding collaborators to a temporary private fork

Anyone with admin permissions to a security advisory can add additional collaborators to the security advisory, and collaborators on the security advisory can access the temporary private fork. For more information, see "Adding a collaborator to a security advisory."

Adding changes to a temporary private fork

Anyone with write permissions to a security advisory can add changes to a temporary private fork.

{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-security %} {% data reusables.repositories.sidebar-advisories %} 4. In the "Security Advisories" list, click the security advisory you'd like to add changes to. Security advisory in list 5. Add your changes on {% data variables.product.product_name %} or locally:

Creating a pull request from a temporary private fork

Anyone with write permissions to a security advisory can create a pull request from a temporary private fork.

{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-security %} {% data reusables.repositories.sidebar-advisories %} 4. In the "Security Advisories" list, click the security advisory you'd like to create a pull request in. Security advisory in list 5. To the right of your branch name, click Compare & pull request. Compare & pull request button {% data reusables.repositories.pr-title-description %} {% data reusables.repositories.create-pull-request %}

{% data reusables.repositories.merge-all-pulls-together %} For more information, see "Merging changes in a security advisory."

Merging changes in a security advisory

Anyone with admin permissions to a security advisory can merge changes in a security advisory.

{% data reusables.repositories.merge-all-pulls-together %}

Before you can merge changes in a security advisory, every open pull request in the temporary private fork must be mergeable. There can be no merge conflicts, and branch protection requirements must be satisfied. To keep information about vulnerabilities secure, status checks do not run on pull requests in temporary private forks. For more information, see "About protected branches."

{% data reusables.repositories.navigate-to-repo %} {% data reusables.repositories.sidebar-security %} {% data reusables.repositories.sidebar-advisories %} 4. In the "Security Advisories" list, click the security advisory with changes you'd like to merge. Security advisory in list 5. To merge all open pull requests in the temporary private fork, click Merge pull requests. Merge pull requests button

After you merge changes in a security advisory, you can publish the security advisory to alert your community about the security vulnerability in previous versions of your project. For more information, see "Publishing a security advisory."

Further reading