Several executive orders in the Truman, Eisenhower, and Kennedy administration made membership in the Communist party illegal, as far as employment by the Federal government.
They need to enforce those, apparently.
I think subsequent Federal court rulings have made such prohibitions illegal.