If Rockruff appears in a max raid battle, you could find one with the Own Tempo ability if you’re lucky.
Rockruff only appears in the Isle of Armor, so if you don't have the DLC, the only way to obtain a Rockruff is to trade.
Source