Assigning Star Ratings Workflow

Would pressing number keys do it?
That’s how I do it in darktable, but I confess I never tried it in DK.