Nobody signs the official secrets act, except perhaps some government official responsible for making laws. If anything, you only sign a scrap of paper confirming that the existence of The Act has been brought to your attention. The Official Secrets Act is an act of parliament and like any such act is part of the law that everyone in the country is subject to.