It looks like the M6 might also fit a Ruger Mini 14 GB.
The M6 has a larger diameter muzzle ring for the M14s flash hider. And the way it locks on is different.
You would need The M7 bayonet. That’s made for the M16 and the Ruger GB Mini14 was specifically made to take the M7.