It’s called ‘embedding’ journalists. It’s a real problem.
Edit: struggling to understand why this would be down voted. I’m not making any kind of value claim. It’s a matter of law that journalists who ride with soldiers are ‘embedded’ and the advice is not to do it because it’s dangerous and makes things more dangerous for other journalists.