You can enforce immutable releases for a repository or organization to prevent potential vulnerabilities.
On GitHub, navigate to the main page of the repository.
Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

Scroll down to the "Releases" section, then select Enable release immutability. Be aware that immutability will only apply to future releases.
On GitHub, navigate to the main page of the organization.
Under your organization name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

In the sidebar, under "Code, planning, and automation", select the Repository dropdown menu, then click General.
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.
If you chose Selected repositories, to the right of the dropdown menu, click . Select the repositories you want to include, then click Select repositories.