diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index e6d7584c..3de6a5df 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -3,8 +3,9 @@ name: Linters on: pull_request: workflow_dispatch: - push: - branches: [ main ] + +permissions: + contents: read jobs: linters: @@ -26,8 +27,7 @@ jobs: - name: Download 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 - run: semgrep ci --config ./frappe-semgrep-rules/rules + run: | + pip install semgrep + semgrep ci --config ./frappe-semgrep-rules/rules --config r/python.lang.correctness