“bash requesting screen access” popup in Mac OS 15

How can I allow the popup I am encountering while I run my UI tests with video recording in the Github actions.

Since these tests are running on VMs, it's not possible to manually click Allow. Also the remote robot cannot interact with OS-level dialogs.

“bash requesting screen access” popup in Mac OS 15
 
 
Q