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.
1 parent 48cdceb commit 0c69a9cCopy full SHA for 0c69a9c
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.
@@ -78,7 +79,7 @@ failures.each do |failure|
78
79
puts "<details>"
80
puts "<summary><code>#{failure.name} in #{failure.failed_test}</code></summary>\n\n"
81
if failure.body
- puts "<pre><code>#{failure.body.chomp.strip}</code></pre>\n\n"
82
+ puts "<pre><code>#{CGI.escapeHTML(failure.body.chomp.strip)}</code></pre>\n\n"
83
end
84
if failure.job
85
puts "in <a href=\"##{failure.job}\">Job ##{failure.job}</a>"
0 commit comments