When skeletons are being repelled by wolves, they will still attempt to shoot, and in rare cases even do so successfully. This is inconsistent with how more recent mobs such as phantoms, piglins, and hoglins behave when being deterred by certain mobs/blocks.
This issue also affects strays, bogged, and wither skeletons.
How to reproduce:
Create a small confine.
Place a sitting dog where the skeleton would see it.
Spawn a skeleton in the confine, and notice that it will randomly pull up its bow while being deterred.
Also affects Bogged and Stray.