Welcome to day 9 of the Drupal Advent Calendar!
First I must apologise for yesterday. I posted the link to the post of the day on various social media, but I forgot to set the post into a published state before I shared, so nobody could access it.
So today I am sharing a way of preventing this sort of mistake.