A couple of notes from 2460 link
https://en.wikipedia.org/wiki/Posse_Comitatus_Act
(It's Wikipedia)
The United States Coast Guard (under the Department of Homeland Security) and United States Space Force (under the Department of the Air Force) are not covered by the Posse Comitatus Act
2011 modification
…or associated forces that are engaged in hostilities against the United States or its coalition partners, including any person who has committed a belligerent act or has directly supported such hostilities in aid of such enemy forces