But there is a catch. Wormhole space is dangerous space. It is very hard to gather the needed resources when hostiles lurk. There is no CONCORD. There is no one to tell you who is in system with you. You are completely on your own to try and determine this information for yourself. There is no sure way to be 100% certain there are no hostile ships in the hole with you. And all ships not of your corporation are assumed hostile.
There are things you can do to greatly mitigate the danger though. The first step is to be familiar with your wormhole. What has the recent activity been like in it? Eveeye.com is a great resource for this. It will show detailed activity in your hole for the past 48 hours. It will give you generalized information for longer trend lines too now. This coupled with your own observations will give you a really good insight to the comings and goings of your hole.
When you reach certainty that you have no lurkers in the hole, you can think about step two. This step is something you should do every day regardless. Scan every square cubic kilometer of your space. Determine where every single Cosmic Signature is in your hole. You should already be an expert on your hole. You should know how many possible random wormholes can connect yours to other locations as well as were your static leads in general. Another element of being an expert on your hole is to know the relative scan strength of all your possible signatures. Start here.
As you scan the signatures down, keep track of their signal strength when you first detected them. This should be done with your probes centered on the star in your system while in their standard formation whether that is five, seven or some other number of probes. This is so you can sort out the K162s from the rest of the signatures. This is important. None of the other holes, including your static, will open until you warp to them. K162s are opened from the other side. You have no control over them. The others you can leave closed by not warping to them, but you must deal with the K162s. There are two ways of dealing with K162s.
The first way is to forget mining that day and try again another day. This may be your only real choice if the K162 is really fat (has a large mass allowance) and you have a small corporation or are the only one online. There is no safe mining with a K162 open.
The second way to deal with it is to collapse it yourself. This procedure is known to all who live in a hole. It is mastered by some. In fact, our mining last night was brought to an end because a K162 opened up. I quickly located it and got to watch a masterful collapse operation.
While the scan is clear, you can mine for as long as you like.