Skip to content

Commit

Permalink
Update semgrep version (#7)
Browse files Browse the repository at this point in the history
Update Semgrep version. Also test on latest semgrep in the CI.
  • Loading branch information
sjkelly authored Feb 15, 2024
1 parent 33b08e0 commit 995dc23
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/semgrep-rules-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,26 @@ on:
- main

jobs:
test-latest:
name: rules-test-latest
test:
name: rules-test-${{ matrix.semgrep_version }}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- semgrep_version: '1.56.0'
install_command: 'pip3 install semgrep==1.56.0'
- semgrep_version: 'latest'
install_command: 'pip3 install semgrep'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9.2
- name: install semgrep
run: pip3 install semgrep==1.52.0
- name: validate rules
- name: Install Semgrep
run: ${{ matrix.install_command }}
- name: Validate rules
run: semgrep --validate --config .
- name: run semgrep
- name: Run semgrep
run: semgrep --test --test-ignore-todo
continue-on-error: ${{ matrix.semgrep_version == 'latest' }}

0 comments on commit 995dc23

Please sign in to comment.