Fix bug: changed reference to references and updated cwe info to fit into semgrep required format #126
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |