blob: ebb88c9edac72b1453e6fb7191fc1eb9dffd5b1c [file] [log] [blame]
Ankush Menat65279c22021-09-01 15:52:16 +05301name: Linters
2
3on:
4 pull_request: { }
5
6jobs:
7
8 linters:
9 name: linters
10 runs-on: ubuntu-latest
11 steps:
12 - uses: actions/checkout@v2
Ankush Menat65279c22021-09-01 15:52:16 +053013
14 - name: Set up Python 3.8
15 uses: actions/setup-python@v2
16 with:
17 python-version: 3.8
18
19 - name: Install and Run Pre-commit
Chillar Anand915b3432021-09-02 16:44:59 +053020 uses: pre-commit/action@v2.0.3
Ankush Menat5ada11b2021-10-20 14:53:49 +053021
Ankush Menatcc1baae2021-10-22 21:43:50 +053022 - name: Download Semgrep rules
Ankush Menat4ad2b852021-10-22 22:38:44 +053023 run: git clone --depth 1 https://github.com/frappe/semgrep-rules.git frappe-semgrep-rules
Ankush Menatcc1baae2021-10-22 21:43:50 +053024
Ankush Menat5ada11b2021-10-20 14:53:49 +053025 - uses: returntocorp/semgrep-action@v1
26 env:
27 SEMGREP_TIMEOUT: 120
28 with:
29 config: >-
30 r/python.lang.correctness
Ankush Menatcc1baae2021-10-22 21:43:50 +053031 ./frappe-semgrep-rules/rules