Merge branch 'revert-security-harness-update' into 'master'

Revert security harness check to let developers push to dev.gitlab.org

See merge request gitlab-org/omnibus-gitlab!4011
This commit is contained in:
Ian Baum 2020-03-17 20:08:43 +00:00
commit 7b133f65db
1 changed files with 3 additions and 3 deletions

View File

@ -28,9 +28,9 @@ HOOK_DATA = <<~HOOK
if [ -e "$harness" ]
then
if [[ "$url" != *"gitlab-org/security/"* ]]
if [[ ("$url" != *"dev.gitlab.org"*) && ("$url" != *"gitlab-org/security/"*) ]]
then
echo "Pushing to remotes other than gitlab.com/gitlab-org/security has been disabled!"
echo "Pushing to remotes other than dev.gitlab.org and gitlab.com/gitlab-org/security has been disabled!"
echo "Run scripts/security-harness to disable this check."
echo
@ -58,7 +58,7 @@ def toggle
else
FileUtils.touch(harness_path)
puts "#{SHELL_GREEN}Security harness installed -- you will only be able to push to gitlab.com/gitlab-org/security!#{SHELL_CLEAR}"
puts "#{SHELL_GREEN}Security harness installed -- you will only be able to push to dev.gitlab.org or gitlab.com/gitlab-org/security!#{SHELL_CLEAR}"
end
end