Only high-risk ones will turn yellow, and you won't change color just when you pass by. The health code is the location of personal information that will not be collected.
If you stay in a city for more than 4 hours, you will be judged as staying. If it takes less than 4 hours, such as passing through a city by train and not getting off or leaving the station, the health code will not change color.