this can happen if the variable in the ci/cd settings section is marked as protected
did you check the Protect Variable checkbox in the variable settings?
another possibility is that your feature branch needs to be marked as protected in the repository’s branch settings.