At the time the Millennium Falcon was captured by the Death Star, it was a civilian transport. The use of enemy uniforms was to facilitate escape from captivity, note that they sabotaged the tractor beam preventing them from escaping, not any other part of the Death Star.