I have a Google spreadsheet that I need some people to edit certain parts, so they need edit permission. I have locks on virtually everything else (except things like adding a sheet, but that won't break anything). The problem is that I use quite a few scripts, and I don't know how to block these users from editing them. Is there any way to protect these scripts from being edited from everyone except me?
Bounded projects inherit permissions from the container so users with edit access to the spreadsheet will have edit access to the code in the bounded project.
One alternative to protect the code is to move to a library. Another alternative is to create an add-on.
Collaborating with Other Developers - Google Apps Script
Late to the party, but for anyone coming across this question in the future, my workaround for this was to use a standalone script. Triggers can be created programmatically using the spreadsheet ID (instructions here).