Battens, Not Nails, Hold a Tarp Down
A batten is a strip of wood, laid over the edge of the tarp and fastened through it into the decking below. The screw goes through the batten, through the tarp, and into sound wood, and the pressure spreads along the whole strip instead of at one point. The tarp cannot tear away from a batten the way it tears away from a nail, and the holes the screws make sit under the batten, where the tarp itself seals them.
Battens go on the top edge first, above the hole, then down the sides, and the bottom edge is left to lie flat so water can run off it. Sandbags can hold a bottom edge on a slope that is too fragile to fasten, and rope tied to a solid anchor works where the roof edge is sound. What never works is a nail through the middle of the tarp, a brick tossed on top, or a staple gun. A tarp held by battens rides out a storm that would strip a nailed tarp off in the first gust.