Skip to content

Spring: Add Semgrep metavar for exact path/route variables #104

Spring: Add Semgrep metavar for exact path/route variables

Spring: Add Semgrep metavar for exact path/route variables #104

Workflow file for this run

name: Routes CI
on: [push, pull_request]
jobs:
ci:
strategy:
matrix:
os:
- ubuntu-latest
# - macos-latest https://github.com/returntocorp/semgrep/issues/8120
python-version:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Install Poetry
run: pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Run CI
run: |
poetry env use ${{ matrix.python-version }}
poetry install --with dev
poetry run pytest --cov
poetry run semgrep --test --config routes/rules/ tests/test_rules/