Ensure GitHub branch protection dismisses stale review on new commit

Error: GitHub branch protection does not dismiss stale reviews
Bridgecrew Policy ID: BC_REPO_GITHUB_7
Checkov Check ID: CKV_GITHUB_11
Severity: LOW

GitHub branch protection does not dismiss stale reviews

Description

By default, PR reviews remain when a new commit is pushed. However, a commit can bring things out of compliance. Dismissing reviews after a commit ensures reviews are still relevant.