Supergirl actress Melissa Benoist has bagged her first major TV role since she The CW series came to an end.

Benoist has officially been cast in HBO Max's upcoming drama The Girl on the Bus.

The series is inspired by a chapter in writer and reporter Amy Chozick's 2018 novel Chasing Hillary, and is based on her time covering Hillary Clinton's 2016 presidential campaign for The New York Times.

melissa benoist on the red carpet
Tommaso Boddi//Getty Images

The upcoming drama will also see Benoist reunite with Supergirl executive producer Greg Berlanti.

She will star as journalist Sadie McCarthy, who, according to the series' official logline, "romanticizes the original 'Boys on the Bus'", putting her life on hold to cover a presidential campaign.

"Sadie hits the trail and eventually bonds with three female competitors," the logline adds. "Despite their differences, these women become a found family with a front-row seat to the greatest soap opera in town: the battle for the White House."

Related: Supergirl's Melissa Benoist speaks out on possible Arrowverse return after show ends

It's been a long road to TV for The Girl on the Bus, which was originally picked up by Netflix in 2019. However, the streaming service later dropped the show and it was then picked up by The CW.

supergirl season 4 melissa benoist
The CW

HBO Max then took up the show in February, skipping the pilot stage and granting it a straight-to-series order.

Meanwhile, Warner Bros Discovery has also renewed its exclusive overall deal with Benoist, meaning that she will continue to develop new shows for all the company's platforms including HBO Max.

She will work via her own company, Three Things Productions, alongside its vice president of development Sahar Kashi.

Benoist finished her six-season run as Kara Danvers on The CW series Supergirl last year.

During her time in the role, she also appeared as a guest star in multiple crossover episodes for The CW's Arrowverse shows including The Flash, Legends of Tomorrow, Batwoman and Arrow.

Best Entertainment and Tech Deals
Shop Sky deals across TV, broadband and mobile
Shop Sky deals across TV, broadband and mobile
Shop at Sky TV
Credit: Sky
Shop Google Pixel 7a phones
Shop Google Pixel 7a phones
Credit: Google
Coronation Street X Joanie - Gilroy Retro Newton And Ridley Sweatshirt
Coronation Street X Joanie - Gilroy Retro Newton And Ridley Sweatshirt
Credit: Joanie Clothing
LEGO Disney and Pixar ‘Up’ House
LEGO Disney and Pixar ‘Up’ House
Credit: LEGO
LEGO 007 Aston Martin DB5 James Bond
LEGO 007 Aston Martin DB5 James Bond
Credit: LEGO
Sign up for Apple TV+
Sign up for Apple TV+
Credit: Apple TV+
Heartstopper Volume 5
Heartstopper Volume 5
Credit: Hodder Children's Books
Barbie The Movie doll
Barbie The Movie doll
Credit: Barbie
Sign up for Disney+
Sign up for Disney+
Credit: Disney+/Lucasfilm
Ted Lasso x Nike: AFC Richmond home kit
Ted Lasso x Nike: AFC Richmond home kit
Credit: Nike
The Woman in Me by Britney Spears
The Woman in Me by Britney Spears
Credit: Gallery UK/Simon & Schuster
Jojo: Finally Home by Johannes Radebe
Jojo: Finally Home by Johannes Radebe
Credit: Hodder & Stoughton
The Witcher wolf pendant
The Witcher wolf pendant
Credit: Amazon
Barbenheimer - Barbie v Oppenheimer T-shirt
Barbenheimer - Barbie v Oppenheimer T-shirt
Credit: Printerval
Barbenheimer T-shirt
Barbenheimer T-shirt
Credit: Etsy
Best PS5 deals - where to buy PS5 today?
Best PS5 deals - where to buy PS5 today?
Credit: PlayStation
Anker PowerCore Essential 20,000 PD Power Bank
Anker PowerCore Essential 20,000 PD Power Bank
Credit: Anker