Avoid having to enter keychain password for altool

I need to automatise the process of notarising MacOS application. In order to achieve that I have created generic password:

security add-generic-password -a <apple_id> -w <app specific passwd> -s "ALIAS" build.keychain-db

Now to avoid having to enter the password I have added as well:

security set-generic-password-partition-list -S apple-tool:,apple: -s "ALIAS" -k <keychain_passwd> <keychain>

And finally I run altool command, but I still get popup asking me for keychain password.

Does anyone know how to avoid this popup? Everything must be done on command line, so if you could provide with the commands to run, it would be great