although tox has a especific command for passing env variables into your tox environment, it didn't work for me.
I'm using python3.12 and tox>=4, and after adding passenv or pass_env to an specific environment in my tox.toml configuration, it simply ignores everything in it and return status OK.
The solution I've found was to pass my variables using set_env.
example:
export MY_ENV="test"
set_env = { MY_ENV="{env:MY_ENV}" }
Doing that, everything worked fine.