title: block kubeconfig file from commit to GitHub
body: <p>We are looking for a Pre-receive script for GitHub, which can block the users from committing kube config file.</p>
  
  <p><a href="https://github.com/github/platform-samples/blob/master/pre-receive-hooks/block_confidentials.sh" rel="nofollow noreferrer">https://github.com/github/platform-samples/blob/master/pre-receive-hooks/block_confidentials.sh</a></p>
  
  <p>We already have a pre-receive hook got from the below location, but its not blocking a kube config information file .</p>
  
  <p>What is the best option of regex to find the file of kube config..</p>