File tree 3 files changed +23
-2
lines changed
3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 60
60
"csv-parse" : " ^5.5.6" ,
61
61
"gunzip-maybe" : " ^1.4.2" ,
62
62
"handlebars" : " ^4.7.8" ,
63
+ "he" : " ^1.2.0" ,
63
64
"js-yaml" : " ^4.1.0" ,
64
65
"jwt-decode" : " ^4.0.0" ,
65
66
"semver" : " ^7.6.2" ,
69
70
"devDependencies" : {
70
71
"@types/csv-parse" : " ^1.2.2" ,
71
72
"@types/gunzip-maybe" : " ^1.4.2" ,
73
+ "@types/he" : " ^1.2.3" ,
72
74
"@types/js-yaml" : " ^4.0.9" ,
73
75
"@types/node" : " ^20.12.10" ,
74
76
"@types/semver" : " ^7.5.8" ,
Original file line number Diff line number Diff line change 16
16
17
17
import crypto from 'crypto' ;
18
18
import fs from 'fs' ;
19
+ import he from 'he' ;
19
20
import jsyaml from 'js-yaml' ;
20
21
import os from 'os' ;
21
22
import path from 'path' ;
@@ -284,15 +285,15 @@ export class GitHub {
284
285
// prettier-ignore
285
286
sum
286
287
. addRaw ( `<details><summary><strong>Error</strong></summary>` )
287
- . addCodeBlock ( buildError , 'text' )
288
+ . addCodeBlock ( he . encode ( buildError ) , 'text' )
288
289
. addRaw ( `</details>` ) ;
289
290
} else {
290
291
// prettier-ignore
291
292
sum
292
293
. addRaw ( `<strong>Error</strong>` )
293
294
. addBreak ( )
294
295
. addRaw ( `<p>` )
295
- . addCodeBlock ( buildError , 'text' )
296
+ . addCodeBlock ( he . encode ( buildError ) , 'text' )
296
297
. addRaw ( `</p>` ) ;
297
298
}
298
299
sum . addRaw ( `</blockquote>` ) ;
Original file line number Diff line number Diff line change @@ -1112,6 +1112,7 @@ __metadata:
1112
1112
" @octokit/plugin-rest-endpoint-methods " : ^10.4.0
1113
1113
" @types/csv-parse " : ^1.2.2
1114
1114
" @types/gunzip-maybe " : ^1.4.2
1115
+ " @types/he " : ^1.2.3
1115
1116
" @types/js-yaml " : ^4.0.9
1116
1117
" @types/node " : ^20.12.10
1117
1118
" @types/semver " : ^7.5.8
@@ -1129,6 +1130,7 @@ __metadata:
1129
1130
eslint-plugin-prettier : ^5.1.3
1130
1131
gunzip-maybe : ^1.4.2
1131
1132
handlebars : ^4.7.8
1133
+ he : ^1.2.0
1132
1134
jest : ^29.7.0
1133
1135
js-yaml : ^4.1.0
1134
1136
jwt-decode : ^4.0.0
@@ -2175,6 +2177,13 @@ __metadata:
2175
2177
languageName : node
2176
2178
linkType : hard
2177
2179
2180
+ " @types/he@npm:^1.2.3 " :
2181
+ version : 1.2.3
2182
+ resolution : " @types/he@npm:1.2.3"
2183
+ checksum : e77851c73dd7b9902d92fe0118a26246a7f3676a3a1c6eb1408305187ef73b57c22550b1435946b983267f961d935554d5d0e1b458416932552f31e763e1aa41
2184
+ languageName : node
2185
+ linkType : hard
2186
+
2178
2187
" @types/istanbul-lib-coverage@npm:*, @types/istanbul-lib-coverage@npm:^2.0.0, @types/istanbul-lib-coverage@npm:^2.0.1 " :
2179
2188
version : 2.0.3
2180
2189
resolution : " @types/istanbul-lib-coverage@npm:2.0.3"
@@ -4923,6 +4932,15 @@ __metadata:
4923
4932
languageName : node
4924
4933
linkType : hard
4925
4934
4935
+ " he@npm:^1.2.0 " :
4936
+ version : 1.2.0
4937
+ resolution : " he@npm:1.2.0"
4938
+ bin :
4939
+ he : bin/he
4940
+ checksum : 3d4d6babccccd79c5c5a3f929a68af33360d6445587d628087f39a965079d84f18ce9c3d3f917ee1e3978916fc833bb8b29377c3b403f919426f91bc6965e7a7
4941
+ languageName : node
4942
+ linkType : hard
4943
+
4926
4944
" html-escaper@npm:^2.0.0 " :
4927
4945
version : 2.0.2
4928
4946
resolution : " html-escaper@npm:2.0.2"
You can’t perform that action at this time.
0 commit comments