Locking App to Prevent Accidental Code Change

Locking App to Prevent Accidental Code Change

avatar
(anonymous user)
Product: PowerShell Universal
Version: 5.6.2


Is there a way to lock an apps script after you’ve finalized it? Just had the unfortunate event of saving a different script over it. I did have a backup saved locally and was able to paste back in but was wondering if there was a feature that could lock the app from changes?

All Comments (1)

avatar

My personal recommendation is to have a prod and dev instance.

Set your prod instance’s git settings to one way so it pulls only from the main branch.

In dev, you can have it configured to a different branch, and when you’re happy with any changes you can do a pull request to main, that way you can have an environment to test in, but also a code review/approval step if required.