Skip to main content

Preventing changes to your releases

You can enforce immutable releases for a repository or organization to prevent potential vulnerabilities.

Enforcing immutable releases for your repository

  1. Sur GitHub, accédez à la page principale du référentiel.

  2. Sous le nom de votre référentiel, cliquez sur Paramètres. Si vous ne voyez pas l’onglet « Paramètres », sélectionnez le menu déroulant , puis cliquez sur Paramètres.

    Capture d’écran d’un en-tête de dépôt montrant les onglets. L’onglet « Paramètres » est mis en évidence avec un encadré orange foncé.

  3. Scroll down to the "Releases" section, then select Enable release immutability. Be aware that immutability will only apply to future releases.

Enforcing immutable releases for your organization

  1. Sur GitHub, accédez à la page principale de l’organisation.

  2. Sous le nom de votre organisation, cliquez sur Settings. Si vous ne voyez pas l’onglet « Paramètres », sélectionnez le menu déroulant , puis cliquez sur Paramètres.

    Capture d’écran des onglets dans le profil d’une organisation. L’onglet « Paramètres » est présenté en orange foncé.

  3. In the "Code, planning, and automation" section of the sidebar, select the Repository dropdown menu, then click General.

  4. In the "Releases" section of the page, select the No policy dropdown menu, then click either All repositories or Selected repositories. Be aware that immutability will only apply to future releases.

  5. If you chose Selected repositories, to the right of the dropdown menu, click . Select the repositories you want to include, then click Select repositories.