Combining Ninja and minigun

Does the perk Ninja add a green die to only one shot of the miniguns walked fire or to each shot at long range?

I believe it counts as 1 attack, but with 5 shots. Since ninja is applied per shot, you’d get a green die to every single shot at long range.

Th that was what I was thinking also but I wanted to make sure