From ca83dad7fe57ba52129a8aed808bcf806f6eea11 Mon Sep 17 00:00:00 2001 From: Maulik Lakhani Date: Thu, 1 Aug 2024 19:41:50 +0530 Subject: [PATCH] Update semgrep.yml --- .github/workflows/semgrep.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/semgrep.yml b/.github/workflows/semgrep.yml index fdc710c..01962cb 100644 --- a/.github/workflows/semgrep.yml +++ b/.github/workflows/semgrep.yml @@ -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