Skip to content
jobs:
test-hooks:
strategy:
matrix:

Check failure on line 4 in .github/workflows/test-pre-commit.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test-pre-commit.yml

Invalid workflow file

You have an error in your yaml syntax on line 4
os: [ubuntu-latest, macos-latest, windows-latest]]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Configure git safedir properly
run: git config --global --add safe.directory $(pwd)
- name: Fake update file
run: git mv tests/python_simple.py python_simple.py
- name: Test semgrep pre-commit hook
uses: pre-commit/[email protected]
with:
extra_args: semgrep --hook-stage manual --files python_simple.py
- name: Test semgrep-ci pre-commit hook
uses: pre-commit/[email protected]
with:
extra_args: semgrep-ci --hook-stage manual --files python_simple.py
- name: Test semgrep-docker-develop pre-commit hook
uses: pre-commit/[email protected]
with:
extra_args: semgrep-docker-develop --hook-stage manual --files python_simple.py
- name: Test semgrep-docker pre-commit hook
uses: pre-commit/[email protected]
with:
extra_args: semgrep-docker --hook-stage manual --files python_simple.py
name: pre-commit-hook-test
on:
pull_request: null
push:
branches:
- develop