Article One, US Constitution: "The privilege of the writ of habeas corpus shall not be suspended, unless when in cases of rebellion or invasion the public safety may require it."
If the Great Rebellion wasn't an example of an appropriate suspension of habeas corpus, what do you think the Founders had in mind?
Article One contains the powers reserved to the legislative branch. Permitted executive actions are detailed in Article Two.