Skip to content

Commit

Permalink
Merge branch 'main' into mikeliao/add-build-step
Browse files Browse the repository at this point in the history
  • Loading branch information
mliao95 authored May 22, 2024
2 parents ef8e701 + b9c4b54 commit 8e83043
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/semgrep.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Scanning Code with Semgrep

on: [pull_request]

jobs:
git-secrets-check:
name: Run Semgrep scan
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install Semgrep
run: |
python -m pip install --upgrade pip
pip install semgrep
- name: Run Semgrep
run: semgrep --config p/ci --output semgrep.sarif --sarif --error

- name: Upload Semgrep results
if: always()
uses: actions/upload-artifact@v2
with:
name: semgrep-results
path: semgrep.sarif

0 comments on commit 8e83043

Please sign in to comment.