The requirement includes revealing it during the Roll Dice step. If that step doesn't occur, then the requirement hasn't occurred and you won't be forced to reveal.
It might be clearer if you skip ahead to after the comma. "You must reveal Glancing Blow at the beginning of the Roll Dice step." Well, that sounds crystal clear to me. If there's no Roll Dice step, then there's no reveal. The specification of "when this creature is attacked" may seem a bit unnecessary since there is no such thing as a Roll Dice step anyplace other than attacks, but I still think it helps. It tells us what action we should be looking out for. I might have moved it to the end of the sentence though: "You must reveal Glancing Blow at the beginning of the Roll Dice step, when this creature is attacked."
Either way, the result is the same. Yes, being attacked is part of the trigger, but so is processing the Roll Dice step. You can't fulfill the instructions without both happening.