A Labor staffer has avoided jail for her role in a Victorian branch-stacking scam cover-up.

The scheme allegedly involved electorate office resources being spent on the preselection campaign of an aspiring politician.

Angela Scarpaci worked for Khalil Eideh (left) with Senator Kim Carr. Credit:Luis Enrique Ascui

Angela Scarpaci, 28, was sentenced in the Victorian County Court on Thursday to a two-year community corrections order after pleading guilty to attempting to pervert the course of justice and perjury over her involvement in the 2017 "cash-for-stacks scandal".

"You are extremely fortunate to be placed on this order Ms Scarpaci. I have reached this decision only after a degree of anxious consideration," Judge Liz Gaynor said.