Slide 18
Slide 18 text
SAST
● ルールは YAML で定義し`message` の文字列をレビューコメントとして投稿
Semgrep + GitHub Actions
# php-xss-echo.yaml
rules:
- id: xss-echo
patterns:
- pattern: |
echo $X;
- pattern-not: |
echo "...";
- pattern-not: |
htmlspecialchars(..., ENT_QUOTES, "UTF-8");
...
message: |
:warning: Found XSS! See https://security-guide...
languages: ["php"]
severity: WARNING