File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change
1
+ * .svg - diff
Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ post-build-tests-fast: check-for-build-errors ensure-each-svg-has-a-png check-fo
63
63
check-for-broken-kramdown-tables check-for-duplicate-header-ids \
64
64
check-for-headers-containing-auto-link check-for-missing-subhead-links \
65
65
check-for-subheading-anchors \
66
- check-jshint
66
+ check-jshint \
67
+ check-for-javascript-in-svgs
67
68
68
69
# # All pre-build tests, including those which might take multiple minutes
69
70
pre-build-tests : pre-build-tests-fast
@@ -268,3 +269,7 @@ check-for-subheading-anchors:
268
269
$S grep -r -i --include \*.html -L 'Note: this file exempt from check-for-subheading-anchors check' _site/ \
269
270
| xargs grep '<h[23456]' \
270
271
| grep -v '<h[23456][^>]* id=' | eval $(ERROR_ON_OUTPUT)
272
+
273
+ check-for-javascript-in-svgs :
274
+ # # Security check: don't allow any SVGs that contain Javascript.
275
+ $S find _site/ -name '*.svg' | xargs grep '<script' | eval $(ERROR_ON_OUTPUT)
You can’t perform that action at this time.
0 commit comments