To retrieve the value of the secret type for an Environment variable, simply provide the Name (not the Display name) of the environment variable in the Perform an unbound action step. There's no need to select it from the dynamic content.