What's the best way to ensure that developers can't modify the contents of the appspec.yml file used by AWS CodeDeploy? This file executes scripts on production servers with root privileges so it would be ideal if there were a way to ensure the files can't be modified by anyone with access to the application repository.
Please note that I'm looking for technical suggestions.
Please also note I'm using CodeDeploy as part of CodePipeline with GitHub as source.