Skip to content

Commit

Permalink
Fixed Salus configuration (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-blunden authored May 11, 2022
1 parent a22c14c commit 274424a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/scanners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
id: salus_scan
uses: federacy/[email protected]
env:
SALUS_CONFIGURATION: "file://../../salus-config.yaml"
SALUS_CONFIGURATION: "file://salus-config.yml"
- uses: actions/upload-artifact@master
if: failure()
with:
Expand Down
2 changes: 1 addition & 1 deletion salus-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ enforced_scanners: "all"
scanner_configs:
Semgrep:
matches:
- config: ../semgrep_configs/eval.yaml
- config: semgrep_configs/eval.yaml
forbidden: true
exclude:
- node_modules
9 changes: 9 additions & 0 deletions semgrep_configs/eval.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
rules:
- id: eval-search
severity: ERROR
languages:
- javascript
- typescript
message: eval() is evil
patterns:
- pattern: eval(...)

0 comments on commit 274424a

Please sign in to comment.