In any case, the work went forward, and the first "B-2" prototype, "Air Vehicle One (AV-1)", was rolled out at the Northrop plant in Palmdale, California, on 22 November 1988. The rollout was public, but observers were restricted to stands that kept them well away from the aircraft and limited their view of it to the front. Although the F-117 had been kept secret for years after its first flight, its test flights had been restricted to night, and that wasn't regarded as acceptable for the B-2. Since it would have been quickly spotted during daylight flights there was no sense it keeping it a complete secret, and nobody tried.
However, the security restrictions at the rollout weren't completely "airtight", in a highly literal sense of the word. Michael A. Dornheim, a reporter from AVIATION WEEK magazine, flew a light aircraft over the B-2 and had a photographer take pictures, obtaining one of the magazine's biggest scoops of all time, and justifying its nickname of AVIATION LEAK. It was all perfectly legal.
Source: http://www.vectorsite.net/avb2.html