Skip to content

Merge pull request #81 from MobSF/march2024 #128

Merge pull request #81 from MobSF/march2024

Merge pull request #81 from MobSF/march2024 #128

Workflow file for this run

name: Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
SEMGREP_R2C_INTERNAL_EXPLICIT_SEMGREPIGNORE: ./tests/assets/src/.semgrepignore
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.9, '3.10', '3.11']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox semgrep==0.117.0
- name: Lint
run: |
tox -e lint
- name: Bandit
run: |
tox -e bandit
- name: Semgrep validate rules
run: |
semgrep --validate --strict --config=./mobsfscan/rules/semgrep/
- name: Semgrep tests
run: |
SEMGREP_SETTINGS_FILE=/dev/null semgrep --metrics=off --test --config ./mobsfscan/rules/semgrep/ ./tests/assets/rules/semgrep/
- name: Run tests
run: |
tox -e py
- name: Clean Up
run: |
tox -e clean