fix: linter action

This commit is contained in:
Jannat Patel
2024-05-13 10:22:11 +05:30
parent 9d0b120cde
commit 65e9d164f5

View File

@@ -3,8 +3,9 @@ name: Linters
on: on:
pull_request: pull_request:
workflow_dispatch: workflow_dispatch:
push:
branches: [ main ] permissions:
contents: read
jobs: jobs:
linters: linters:
@@ -26,8 +27,7 @@ jobs:
- name: Download Semgrep rules - name: Download Semgrep rules
run: git clone --depth 1 https://github.com/frappe/semgrep-rules.git frappe-semgrep-rules run: git clone --depth 1 https://github.com/frappe/semgrep-rules.git frappe-semgrep-rules
- name: Download semgrep
run: pip install semgrep
- name: Run Semgrep rules - name: Run Semgrep rules
run: semgrep ci --config ./frappe-semgrep-rules/rules run: |
pip install semgrep
semgrep ci --config ./frappe-semgrep-rules/rules --config r/python.lang.correctness