Skip to content

Commit f568625

Browse files
Fail rebuild for config files containing compromised github organisation (#278)
See https://meta.discourse.org/t/plugin-repository-hijacked/374703/6
1 parent ec799c4 commit f568625

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lib/docker_manager/upgrader.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ def upgrade
2727

2828
clear_logs
2929

30+
if @repos.any? { |repo| repo.url.include?("github.com/discoursehosting/") }
31+
log "ERROR: Detected a reference to a compromised github organization: github.com/discoursehosting/"
32+
log "Please remove any references to this organization from your configuration file."
33+
log "For more information, see https://meta.discourse.org/t/374703/6"
34+
raise "Compromised organization detected"
35+
end
36+
3037
log("********************************************************")
3138
log("*** Please be patient, next steps might take a while ***")
3239
log("********************************************************")

0 commit comments

Comments
 (0)