Passing parameters to plugins in CI/CD

Hey folks, new to serverless and trying to use the CI/CD functionality to deploy my backend and frontend (all in one serverless file). I seem to be running into an issue where profile-level parameters that are accessed just fine when running serverless deploy turn up an error when using serverless-plugin-scripts to run serverless client build && serverless client deploy --no-confirm in the 'deploy:finalize' hook.

The specific error I get is Variable dependency failure: variable 'param:env' references Serverless Parameters but using that service requires a concrete value to be called.

Is there a way around this? How else could I pass a staging variable to my plugins?

Thank you!