Skip to content

Commit

Permalink
Added Semgrep
Browse files Browse the repository at this point in the history
  • Loading branch information
uranium committed Aug 22, 2024
1 parent 257720f commit f121ad3
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Semgrep Scan

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
semgrep:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install Semgrep
run: pip install semgrep
- name: Run Semgrep
run: semgrep --config .semgrep.yml .
4 changes: 4 additions & 0 deletions semgrep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
rules:
- id: sql-injection
- id: xss
- id: insecure-password-storage

0 comments on commit f121ad3

Please sign in to comment.