style(ci): keep semgrep config focused
This commit is contained in:
@@ -89,6 +89,8 @@ rules:
|
|||||||
- "**/*.ts"
|
- "**/*.ts"
|
||||||
- "**/index.ts"
|
- "**/index.ts"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# ────────────────────────────────────────────────────────────────────────
|
# ────────────────────────────────────────────────────────────────────────
|
||||||
# Supply chain: dependency injection
|
# Supply chain: dependency injection
|
||||||
# ────────────────────────────────────────────────────────────────────────
|
# ────────────────────────────────────────────────────────────────────────
|
||||||
@@ -207,8 +209,8 @@ rules:
|
|||||||
- id: pi-extension-unusual-import
|
- id: pi-extension-unusual-import
|
||||||
patterns:
|
patterns:
|
||||||
- pattern-either:
|
- pattern-either:
|
||||||
- pattern: 'import $X from "..."'
|
- pattern: "import $X from \"...\""
|
||||||
- pattern: 'const $X = require("...")'
|
- pattern: "const $X = require(\"...\")"
|
||||||
- metavariable-regex:
|
- metavariable-regex:
|
||||||
metavariable: $X
|
metavariable: $X
|
||||||
regex: "(compression|pako|zlib|tar|stream|archiver|request|axios|needle|got|superagent|node-fetch|undici)"
|
regex: "(compression|pako|zlib|tar|stream|archiver|request|axios|needle|got|superagent|node-fetch|undici)"
|
||||||
|
|||||||
Reference in New Issue
Block a user