Skip to content

Commit

Permalink
SC-3121:Create semgrep.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Revanthathreya authored Jul 22, 2024
1 parent 4a9f9a2 commit 2e518c5
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Semgrep

# Run workflow each time code is pushed to your repository.
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Semgrep
run: pip install semgrep

- name: Run Semgrep
run: |
semgrep --config .semgreprules/customRule.yml --config auto --severity ERROR --sarif . > results.sarif
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
# Path to SARIF file relative to the root of the repository
sarif_file: results.sarif

- name: Upload results
uses: actions/upload-artifact@v4
with:
name: semgrep-results
path: results.sarif

0 comments on commit 2e518c5

Please sign in to comment.