I have several env variables set in the UI, and a custom env called app2. I am moving my build to GHA but I don't have all the expected env variables:

vercel pull --yes --environment=app2 --token=$VERCEL_TOKENVercel CLI 41.7.2> Downloading `app2` Environment Variables for MYORG/MYPROJECTError: Invalid request: 'target' value of 'app2' references an environment that does not exist.I also tried vercel pull --yes --environment=preview --git-branch=app2 --token=$VERCEL_TOKEN but that doesn't give me the right variables.
I suppose the correct behaviour here is a file with all variables from my image. What I am missing here? Thanks