Skip to content

Commit

Permalink
Update semgrep.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MaulikxLakhani committed Aug 1, 2024
1 parent 1b9782d commit ca83dad
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,16 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install Semgrep Agent
run: pip install semgrep-agent
run: pip install --upgrade semgrep-agent

- name: Fetch base branch
run: git fetch origin main:main

- name: Run Semgrep Agent
run: semgrep-agent --config auto --baseline-ref $(git rev-parse origin/main)
run: semgrep-agent --config auto --baseline-ref origin/main

0 comments on commit ca83dad

Please sign in to comment.