Maybe it’s all that liquid courage that makes them willing to take a bullet for the president.

Two high-ranking members of the Secret Service drunkenly crashed a government car into a security barricade outside the White House, according to a report Wednesday.

The agents — including the second in command of President Obama’s security detail — were coming back from a retirement party for departing agency spokesman Edwin Donovan when one of them lost control of their official car, the Washington Post reported.

Some officers wanted to take the Secret Service members in and give them blood alcohol tests, but a supervisor stepped in and let the agents go home to sleep it off, the report said.

The agents involved in the March 4 crash were identified as Mark Connolly, a high-ranking member of Obama’s security force, and Washington field office supervisor George Ogilvie.

They approached the White House with their car’s flashing lights on when the area was under lockdown for a suspicious package.

They flashed their badges before plowing through security tape and crashing into the barricades set up for the package probe, the paper reported.

Not only would driving a government car after drinking be a violation, but it is also improper to drive with flashing lights on when there is no emergency.

The embarrassing incident came just a couple of weeks after Joseph Clancy took over the agency — which was reeling from several security breaches, including a man hopping a fence and getting into the White House through an unlocked door.

Clancy took over after the resignation of Julia Pierson, who herself had taken over after a scandal in which agents were caught bedding prostitutes at a hotel while preparing to guard the president at a summit in Colombia.

Clancy has asked the inspector general’s office to look into the matter and vowed the Secret Service’s full cooperation with the probe.

“If misconduct is identified, appropriate action will be taken based on established rules and regulations,” agency spokesman Brian Leary told the Washington Post.