chore: For v1.26.0 release #225
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # When updating this file, please also update the linter_workflow_template in frappe/utils/boilerplate.py | |
| name: Linters | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| linter: | |
| name: 'Semgrep Rules' | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'pull_request' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.14' | |
| cache: pip | |
| - name: Download Semgrep rules | |
| run: git clone --depth 1 https://github.com/frappe/semgrep-rules.git frappe-semgrep-rules | |
| - name: Run Semgrep rules | |
| run: | | |
| pip install semgrep | |
| semgrep ci --config ./frappe-semgrep-rules/rules --config r/python.lang.correctness | |
| deps-vulnerable-check: | |
| name: 'Vulnerable Dependency Check' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.14' | |
| cache: pip | |
| - name: Install and run pip-audit | |
| run: | | |
| pip install pip-audit | |
| pip-audit --desc on --ignore-vuln PYSEC-2023-312 --ignore-vuln CVE-2026-28684 . | |
| precommit: | |
| name: 'Pre-Commit' | |
| runs-on: ubuntu-latest | |
| if: github.event_name == 'pull_request' | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.14' | |
| cache: pip | |
| - uses: pre-commit/action@v3.0.1 | |
| env: | |
| SKIP: prettier |