When I run
spctl -vvv --assess --type exec dist/mas/myapp-1.1.9.pkg
I get
rejected
source=Unnotarized Developer ID
origin=Developer ID Application: MyCompany Inc (XXXXXXXXX)
So then I run the notarization
xcrun altool --notarize-app -f dist/mas/myapp-1.1.9.pkg --primary-bundle-id com.mycompany.myapp -u myemail@domain.com -p my-app-password --asc-provider myprovider
As result I got
No errors uploading 'dist/mas/myapp-1.1.9.pkg'.
RequestUUID = xxxx-xxx-xxxx-xxx-xxxxx
But when I run again the spctl command, i get
rejected
source=Unnotarized Developer ID