Preventing desktop/network access dialogs on new builds

I share my scripts through local distribution and export applications with either local code signing or using my Developer certificate (but I don’t use notarization). This has allowed all of the app specific permission dialog boxes only occur on the initial run of the app, without needing to approve them again on each new version I release.

However, both signing methods still cause the small square dialog box to pop up asking to allow access to the desktop or remote volumes. This happens with every new version distributed. I am on Monterey with Script Debugger 8.0.3 and all users are currently on Big Sur.

Is there something I’m missing, or is there no way to prevent this on new versions?

The answer is probably notarization.