That's the purpose of the forge platform, to provide a way to prevent changes to these files from being accept into the source repository. For example:
https://docs.github.com/en/repositories/configuring-branches...
https://docs.gitlab.com/user/project/protected_tags/
https://forgejo.org/docs/latest/user/protection/#protected-t...