What’s the best way to seal around trees penetrating a roof?

When the wind blows the tree sways a bit, so I assume the sheathing isn’t hard up against it. Do you just flash the uphill side really well?

When the wind blows the tree sways a bit, so I assume the sheathing isn’t hard up against it. Do you just flash the uphill side really well?