I've had a bike in storage for over 10 years. What maintenance does it need?
If the bike was in decent shape when put away, and has not been exposed to the weather, there's probably very little that needs to be done.

The tires would be the biggie -- likely they're checked and may need replacement (though not for certain).  Inflate them to listed pressure and check the sidewalls for cracks or bulges.

Assuming rim brakes, the brake pads may very well be hard and in need of replacing.  But you can't tell for sure until you try.

Otherwise, wipe off the dust, inspect for rust, and put a bit of oil on the chain.  Check that the wheels spin freely, with no play in the bearings, and that the steering tube likewise moves freely with no play.

Give it a test ride.  Make sure the brakes work OK and that the wheels don't rub as they turn.  Try a few corners to make sure there are no odd handling issues.

The shifters likely will be balky at first -- run them through their paces a few times.

Basically, if the tires are sound and the steering is good and the brakes are good and there's no massive rust anywhere, there are likely no major safety issues.  Dependability then becomes your concern, since you will be commuting, and there it's mainly the condition of the tires and how well the shifters work.

[I did miss mentioning cable housings.  The cables should be given a shot of spray lube down the housing tubes.  This is often all that's needed to turn a balky bike into a smoothly shifting/braking one.]