President Barack Obama (how comforting those words feel) has seven days to save the life of Private Chelsea Manning after two failed suicide bids. In a twist to the tale worthy of a Le Carre novel, Manning’s life is at risk after the whistleblowing website she leaked to helped elect a demagogue whose inner circle believes that she should be executed for treason.

People close to Manning fear for her future. She spent six months in solitary confinement, an arbitrary punishment defined as torture under international law. An army board even confined her to solitary confinement as punishment after her suicide attempt last July. She was found not guilty of the charge of “resisting the force cell move team” – but only because she may have been unconscious when her jailers arrived.

After two suicide attempts and a hunger strike in just over six months, Manning is in serious danger. President Obama, a former constitutional lawyer, can free her with a stroke of his pen this week. If he doesn’t, the consequences will be grave.

Manning has been sentenced to 35 years in prison, the longest sentence ever for a US whistleblower. Instead, she should be feted: the leaked documents she exposed demonstrated US complicity in crimes in Iraq, showed how US private contractors abusing civilians and led to the public in Tunisia turning against their ruthless tyrant President Ben Ali (and commenced the Arab Spring).

Watch President Obama award the Presidential Medal of Freedom to Vice President Biden in full

As activist Sami Ben Gharbia wrote on the impact of Manning’s leaks on the Tunisian revolution: “If the US will take 35 years from Chelsea Manning’s life, may it console her that she has given us, Arabs, the secret gift that helped expose and topple 50 years of dictatorships.”

It should be said unambiguously: Chelsea Manning is a hero who has freed people from dictatorship. Yet the election of Donald Trump now poses a risk to her life. Trump’s inner circle has called for the death penalty for whistleblowers, except when it suits their narrow interests.

Here lies a dark irony: the whistleblowing website Chelsea Manning approached to leak the cables she downloaded, Wikileaks, played a major role in the election of President-elect Donald Trump. It is becoming increasingly clear that the Russian government authorised a hack on both US presidential candidates, Hillary Clinton and Donald Trump, during the campaign. This was confirmed by an extraordinary joint statement of the Homeland Security Department and the Director of National Intelligence on behalf of America’s 17 intelligence agencies which said:

“The US Intelligence Community (USIC) is confident that the Russian Government directed the recent compromises of e-mails from US persons and institutions, including from US political organisations. The recent disclosures of alleged hacked e-mails on sites like DCLeaks.com and WikiLeaks... are consistent with the methods and motivations of Russian-directed efforts. These thefts and disclosures are intended to interfere with the US election process.”

Wikileaks denies this. It is also known that, while Wikileaks aligned itself with Trump by publishing leaked emails to derail Hillary Clinton’s presidential campaign, the site made no disclosures about Trump. This is despite Trump refusing to disclose his tax returns – the first president not to do so since Gerald Ford. Rumours now abound that the Russians may have more than one sex tape on Trump and information on his private businesses.

Trump and Putin passionately kiss in street mural Show all 14 1 /14 Trump and Putin passionately kiss in street mural Trump and Putin passionately kiss in street mural A lesbian couple kisses in front of mural depicting Russian President Vladimir Putin and Republican presidential candidate Donald Trump, on the walls of a barbecue bar 'Keule Ruke' on May 19, 2016 in Vilnius, Lithuania. Barcroft Media/Getty Trump and Putin passionately kiss in street mural A lesbian couple kisses in front of mural depicting Russian President Vladimir Putin and Republican presidential candidate Donald Trump, on the walls of a barbecue bar 'Keule Ruke' on May 19, 2016 in Vilnius, Lithuania. Barcroft Media/Getty Trump and Putin passionately kiss in street mural VILNIUS, LITHUANIA - NOVEMBER 23: A woman walks past a mural showing U.S. President-elect Donald Trump (R) blowing marijuana smoke into the mouth of Russian President Vladimir Putin on the wall of a bar-b-que restaurant on November 23, 2016 in Vilnius, Lithuania. Many people in the three Baltic nations of Lithuania, Latvia and Estonia are concerned that Russia, because Trump has expressed both admiration for Putin and doubt over defending NATO member states, will be emboldened to intervene militarily in the Baltics. Sean Gallup/Getty Trump and Putin passionately kiss in street mural A woman walks past a mural on a restaurant wall depicting US Presidential hopeful Donald Trump and Russian President Vladimir Putin greeting each other with a kiss in the Lithuanian capital Vilnius on May 13, 2016. Kestutis Girnius, associate professor of the Institute of International Relations and Political Science in Vilnius university, told AFP -This graffiti expresses the fear of some Lithuanians that Donald Trump is likely to kowtow to Vladimir Putin and be indifferent to Lithuanias security concerns. Trump has notoriously stated that Putin is a strong leader, and that NATO is obsolete and expensive. Petras Malukas/AFP/Getty Images Trump and Putin passionately kiss in street mural AP Trump and Putin passionately kiss in street mural A child walks past a graffiti depicting Russian President Vladimir Putin, left, and Republican presidential candidate Donald Trump, on the walls of a bar in the old town in Vilnius, Lithuania, Saturday, May 14, 2016. (AP Photo/Mindaugas Kulbis) AP Trump and Putin passionately kiss in street mural People walk past a mural on a restaurant wall depicting US Presidential hopeful Donald Trump and Russian President Vladimir Putin greeting each other with a kiss in the Lithuanian capital Vilnius on May 13, 2016. Kestutis Girnius, associate professor of the Institute of International Relations and Political Science in Vilnius university, told AFP -This graffiti expresses the fear of some Lithuanians that Donald Trump is likely to kowtow to Vladimir Putin and be indifferent to Lithuanias security concerns. Trump has notoriously stated that Putin is a strong leader, and that NATO is obsolete and expensive. Petras Malukas/AFP/Getty Images Trump and Putin passionately kiss in street mural A man photographs a mural on a restaurant wall depicting US Presidential hopeful Donald Trump and Russian President Vladimir Putin greeting each other with a kiss in the Lithuanian capital Vilnius on May 13, 2016. Kestutis Girnius, associate professor of the Institute of International Relations and Political Science in Vilnius university, told AFP -This graffiti expresses the fear of some Lithuanians that Donald Trump is likely to kowtow to Vladimir Putin and be indifferent to Lithuanias security concerns. Trump has notoriously stated that Putin is a strong leader, and that NATO is obsolete and expensive. Petras Malukas/AFP/Getty Images Trump and Putin passionately kiss in street mural AP Trump and Putin passionately kiss in street mural A young woman walks past a mural showing U.S. President-elect Donald Trump (R) blowing marijuana smoke into the mouth of Russian President Vladimir Putin with the slogan "make everything great again," in reference to Trump's campaign slogan of "Make America Great Again," on the wall of a bar-b-que restaurant on November 23, 2016 in Vilnius, Lithuania. Many people in the three Baltic nations of Lithuania, Latvia and Estonia are concerned that Russia, because Trump has expressed both admiration for Putin and doubt over defending NATO member states, will be emboldened to intervene militarily in the Baltics. Sean Gallup/Getty Trump and Putin passionately kiss in street mural A morning commuter stops to look at a mural on a restaurant wall depicting US Presidential hopeful Donald Trump and Russian President Vladimir Putin greeting each other with a kiss in the Lithuanian capital Vilnius on May 13, 2016. Kestutis Girnius, associate professor of the Institute of International Relations and Political Science in Vilnius university, told AFP -This graffiti expresses the fear of some Lithuanians that Donald Trump is likely to kowtow to Vladimir Putin and be indifferent to Lithuanias security concerns. Trump has notoriously stated that Putin is a strong leader, and that NATO is obsolete and expensive. Petras Malukas/AFP/Getty Images Trump and Putin passionately kiss in street mural Restaurant owner Dominykas Ceckauskas pose next to a mural on the wall of his establishment depicting US Presidential hopeful Donald Trump and Russian President Vladimir Putin greeting each other with a kiss in the Lithuanian capital Vilnius on May 13, 2016. Kestutis Girnius, associate professor of the Institute of International Relations and Political Science in Vilnius university, told AFP -This graffiti expresses the fear of some Lithuanians that Donald Trump is likely to kowtow to Vladimir Putin and be indifferent to Lithuanias security concerns. Trump has notoriously stated that Putin is a strong leader, and that NATO is obsolete and expensive. / AFP / Petras Malukas (Photo credit should read PETRAS MALUKAS/AFP/Getty Images) Petras Malukas/AFP/Getty Images Trump and Putin passionately kiss in street mural A passerby photographs a mural showing U.S. President-elect Donald Trump (R) blowing marijuana smoke into the mouth of Russian President Vladimir Putin on the wall of a bar-b-que restaurant on November 23, 2016 in Vilnius, Lithuania. Many people in the three Baltic nations of Lithuania, Latvia and Estonia are concerned that Russia, because Trump has expressed both admiration for Putin and doubt over defending NATO member states, will be emboldened to intervene militarily in the Baltics. Sean Gallup/Getty Trump and Putin passionately kiss in street mural Getty

In a worrying turn, the Russian government is now claiming Britain’s MI6 was involved in the “leak” on Trump’s private behaviour in Moscow, in order to drive a wedge between the President-elect and the UK. All the while, Wikileaks’ Julian Assange protests his innocence though the evidence on his collusion with the Russians to bolster Trump appears to mount.

By allying with Trump, Assange has hurt Manning. He has also made it harder for Edward Snowden to return home to the US.

Snowden is also now in danger due to the Trump presidency. Mike Pompeo, the Kansas congressman who Trump has given the job of running the CIA, has called for the execution of “traitor” Edward Snowden.

Maybe we could give Assange the benefit of the doubt and assume the Kremlin disguised its activity and gave Wikileaks the leaked materials on Clinton via a third party. It is also the case that it is unlikely Assange was passed any damning evidence on Trump, after all, why would they?

Yet, it makes it all the more important for Wikileaks to understand its responsibility in publishing leaked materials. By doing so, and publishing documents that aid Putin’s autocracy, Assange has caused harm to two people I imagine he would not want to hurt.

Ultimately, one man can end his relentless war on whistleblowers: President Barack Obama. His administration has used the 1917 Espionage Act more than any other in American history - and this includes President Franklin D. Roosevelt during World War II.

Obama is in many ways a liberal hero, but here he has fallen short. He has just a week to defend the First Amendment right to speak out against the government’s misuse of power.

Snowden and Manning revealed truths that needed to be told. Obama should pardon them both now, for they are in real peril from President-elect Trump.