Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions launcher
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ BUNDLED_PLUGINS=(
"discourse-calendar"
)

COMPROMISED_ORGANIZATIONS=(
"github.com/discoursehosting"
)

# for potential re-exec later
SAVED_ARGV=("$@")

Expand Down Expand Up @@ -358,6 +362,18 @@ set_template_info() {
arrTemplates=(${templates// / })
config_data=$(cat $config_file)

# if config data includes any compromised organizations, error out and print a message
for org in "${COMPROMISED_ORGANIZATIONS[@]}"; do
if [[ $config_data =~ $org ]]; then
echo "---"
echo "ERROR: The configuration file $config_file contains references to a compromised github organization: $org"
echo "Please remove any references to this organization from your configuration file."
echo "For more information, see https://meta.discourse.org/t/374703/6"
echo "---"
exit 1
fi
done

input="hack: true"

for template in "${arrTemplates[@]}"
Expand Down