123456789101112131415161718192021222324252627 |
- # Usage: semgrep scan -f semgrep.yml
- rules:
- - id: rule-0
- message: "find http requests made not with *fiber.Ctx available"
- languages: [go]
- severity: WARNING
- patterns:
- - pattern-either:
- - pattern: |
- http.UnwrapWebAPIRequest(...)
- - pattern: |
- http.WebAPIRequest(...)
- - pattern-not-inside: |
- func $FUNC(c *fiber.Ctx, ...) $RET {
- ...
- }
- - id: rule-1
- message: "find http requests made (limiter should be installed at all places)"
- languages: [go]
- severity: INFO
- patterns:
- - pattern-either:
- - pattern: |
- http.UnwrapWebAPIRequest(...)
- - pattern: |
- http.WebAPIRequest(...)
|