Of course, it was different when Obama did it.
Via The Federalist:
Just a month before the 2016 election, President Barack Obama signed a policy directive ordering the U.S. intelligence community to share sensitive U.S. intelligence with Cuba’s communist government, despite the fact that one of the top U.S. intelligence official had branded Cuba as one of America’s biggest espionage threats. The presidential policy directive, which was issued as part of the Obama administration’s efforts to normalize U.S. relations with the Castro regime, required the Office of the Director of National Intelligence to “exchange information on mutual threats with Cuban counterparts.”
“The Office of the Director of National Intelligence (DNI) will support broader United States Government efforts to normalize relations with Cuba, with Intelligence Community elements working to find opportunities for engagement on areas of common interest through which we could exchange information on mutual threats with Cuban counterparts,” the Obama directive stated.
The Obama administration put some flesh on the bones of the October 2016 directive by signing a January 2017 law enforcement agreement with Cuba officially committing the U.S. to sharing sensitive intelligence with the island nation’s communist regime.
“The memorandum signed Monday commits the U.S. and Cuba to sharing information, carrying out joint investigations and possibly stationing law-enforcement officials in each other’s countries,” the Associated Press (AP) reported just days before Obama left office. The AP report characterized the agreement as a “pledge to share intelligence with Cuban state security.”