Resolve "Check for master and dev branches being protected"
Closes #147 (closed)
This MR checks whether master/development branches are protected in the lint stage and outputs an appropriate error message.
Successful pipeline tests:
- https://repo1.dso.mil/dsop/opensource/pipeline-test-project/ubi8-minimal/-/jobs/1592127 (development, unprotected)
- https://repo1.dso.mil/dsop/opensource/pipeline-test-project/ubi8-minimal/-/jobs/1592145 (development, protected)
- https://repo1.dso.mil/dsop/opensource/pipeline-test-project/ubi8-minimal/-/jobs/1592325 (master, unprotected)
- https://repo1.dso.mil/dsop/opensource/pipeline-test-project/ubi8-minimal/-/jobs/1592262 (master, protected)
- https://repo1.dso.mil/dsop/opensource/pipeline-test-project/ubi8-minimal/-/jobs/1592498 (feature branch, unprotected)