Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F java structs2 enhancement #17

Merged
merged 3 commits into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ repos:
rev: 0.1.1
hooks:
- id: yamlfmt
language_version: python3.10
# NOTE: If you change these settings, be sure to also
# change the semgrep.live YAML settings, otherwise diffs will fail
# to lint
Expand All @@ -44,7 +43,6 @@ repos:
rev: 0.1.1
hooks:
- id: yamlfmt
language_version: python3.10
# NOTE: If you change these settings, be sure to also
# change the semgrep.live YAML settings, otherwise diffs will fail
# to lint
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
rules:
- id: web-xml-url-pattern
- id: web-xml-filter-url-pattern
message: >-
web.xml Struts2
filter $FILTER_NAME
Expand All @@ -8,6 +8,7 @@ rules:
severity: INFO
# There is no proper tree-sitter-xml
# Only this https://github.com/unhammer/tree-sitter-xml
# 2023: https://github.com/tree-sitter-grammars/tree-sitter-xml
languages: [generic]
metadata:
category: security
Expand All @@ -21,8 +22,6 @@ rules:
paths:
include:
- web.xml
# unit test
- web-xml-url-pattern.xml
patterns:
- pattern: |
<filter>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ rev: heads/master-0-g371e480
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Struts Blank</display-name>

<!-- ruleid: web-xml-url-pattern -->
<!-- ruleid: web-xml-filter-url-pattern -->
<filter>
<filter-name>struts2</filter-name>
<filter-class>
Expand Down
Loading