We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 657e87a + 0c69a9c commit 3272c9dCopy full SHA for 3272c9d
ruby/bin/annotate
@@ -2,6 +2,7 @@
2
3
require 'rexml/document'
4
require 'rexml/element'
5
+require 'cgi/util'
6
7
# Reads a list of junit files and returns a nice Buildkite build annotation on
8
# STDOUT that summarizes any failures.
@@ -91,7 +92,7 @@ failures.each do |failure|
91
92
puts "<p>#{failure.message.chomp.strip}</p>\n\n"
93
end
94
if failure.body
- puts "<pre><code>#{failure.body.chomp.strip}</code></pre>\n\n"
95
+ puts "<pre><code>#{CGI.escapeHTML(failure.body.chomp.strip)}</code></pre>\n\n"
96
97
if failure.job
98
puts "in <a href=\"##{failure.job}\">Job ##{failure.job}</a>"
0 commit comments