`mdls` command failing on MacOS runners, can't check version of `.app`

Hey, I’m trying to check the version of a created .app through mdls but it’s returning (null) object. It works locally. Here is the command:

mdls -raw -name kMDItemVersion dist/mac/Superpowered.app

Do you know why mdls might not be working in Github Actions Runners? Do you know any other way to check the version of .app?

1 Like

I am also having this issue with running a unit test inside the Actions Runner. Any reason why lsof in the Mac Action Runner has been limited in it’s permissions to reading file metadata?