Skip to content

Commit 67a38cf

Browse files
committed
Apply template scans to *.twig files
To scan Twig (https://twig.symfony.com/) templates.
1 parent 518f71b commit 67a38cf

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

generic/html-templates/security/unquoted-attribute-var.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ rules:
2929
- '*.html'
3030
- '*.mustache'
3131
- '*.hbs'
32+
- '*.twig'
3233
severity: WARNING
3334
patterns:
3435
- pattern-inside: <$TAG ...>

generic/html-templates/security/var-in-href.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ rules:
3838
- '*.html'
3939
- '*.mustache'
4040
- '*.hbs'
41+
- '*.twig'
4142
severity: WARNING
4243
patterns:
4344
- pattern-inside: <a ...>

generic/html-templates/security/var-in-script-src.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ rules:
3535
- '*.mustache'
3636
- '*.hbs'
3737
- '*.html'
38+
- '*.twig'
3839
severity: WARNING
3940
patterns:
4041
- pattern-inside: <script ...>

generic/html-templates/security/var-in-script-tag.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ rules:
3838
- '*.mustache'
3939
- '*.hbs'
4040
- '*.html'
41+
- '*.twig'
4142
severity: WARNING
4243
patterns:
4344
- pattern-inside: <script ...> ... </script>

javascript/express/security/audit/xss/mustache/var-in-script-tag.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ rules:
3939
- '*.mustache'
4040
- '*.hbs'
4141
- '*.html'
42+
- '*.twig'

0 commit comments

Comments
 (0)