-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (31 loc) · 1.09 KB
/
test-pre-commit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
jobs:
test-hooks:
runs-on: ubuntu-latest
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