Security: Support for automatic locking the keyring / seahorse / gnome keyring

I wonder if its possible to configure the keyring to autolock after some time?

After login the keyring stays unlocked. So every “bad script” that the user unintentionally executes, can access credentials in the keyring. To mitigate this scenario an autolock function would shorten the time window …

I known that the locking can be done manually. Therefore the question for an automatic solution.

Any ideas? Thanks!