Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Commit 274424a

Browse files
authored
Fixed Salus configuration (#23)
1 parent a22c14c commit 274424a

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.github/workflows/scanners.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
id: salus_scan
1616
uses: federacy/scan-action@0.1.4
1717
env:
18-
SALUS_CONFIGURATION: "file://../../salus-config.yaml"
18+
SALUS_CONFIGURATION: "file://salus-config.yml"
1919
- uses: actions/upload-artifact@master
2020
if: failure()
2121
with:

salus-config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ enforced_scanners: "all"
1919
scanner_configs:
2020
Semgrep:
2121
matches:
22-
- config: ../semgrep_configs/eval.yaml
22+
- config: semgrep_configs/eval.yaml
2323
forbidden: true
2424
exclude:
2525
- node_modules

semgrep_configs/eval.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
rules:
2+
- id: eval-search
3+
severity: ERROR
4+
languages:
5+
- javascript
6+
- typescript
7+
message: eval() is evil
8+
patterns:
9+
- pattern: eval(...)

0 commit comments

Comments
 (0)