Howto notify about fedora updates only if they are critical

Hi, does anybody know if there is a way to configure qubes 4.0 and/or fedora in such a way that it only notifies me about available OS updates if they are security critical?

You could write a simple script that writes to a file, requesting only security updates.
I’m not sure if “dnf” lists the security level of such updates.

dnf supports the --security flag. I assume you can add this flag to yum_output in /usr/lib/qubes/upgrades-installed-check in the TemplateVM to only notify on security updates.

Do you know if you can apply only security updates?

If no, will the flag resolve also the dependencies or should I run “dnf update” to update all?