mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-29 11:38:32 +00:00
ci: move semgrep rules out of repo (backport #28067)
* ci: move semgrep rules out of repo (#28067)
Moving semgrep rules out of repos as it's unnecessary to maintain
same ruleset for different repos and different branches.
(cherry picked from commit cc1baae5eb)
# Conflicts:
# .github/helper/semgrep_rules/frappe_correctness.py
# .github/helper/semgrep_rules/frappe_correctness.yml
# .github/helper/semgrep_rules/report.py
# .github/helper/semgrep_rules/ux.py
# .github/workflows/linters.yml
* fix: resolve conflicts
Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
20
.github/workflows/linters.yml
vendored
20
.github/workflows/linters.yml
vendored
@@ -10,13 +10,6 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: returntocorp/semgrep-action@v1
|
||||
env:
|
||||
SEMGREP_TIMEOUT: 120
|
||||
with:
|
||||
config: >-
|
||||
r/python.lang.correctness
|
||||
.github/helper/semgrep_rules
|
||||
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v2
|
||||
@@ -24,4 +17,15 @@ jobs:
|
||||
python-version: 3.8
|
||||
|
||||
- name: Install and Run Pre-commit
|
||||
uses: pre-commit/action@v2.0.0
|
||||
uses: pre-commit/action@v2.0.3
|
||||
|
||||
- name: Download Semgrep rules
|
||||
run: git clone --depth 1 https://github.com/frappe/frappe-semgrep-rules.git
|
||||
|
||||
- uses: returntocorp/semgrep-action@v1
|
||||
env:
|
||||
SEMGREP_TIMEOUT: 120
|
||||
with:
|
||||
config: >-
|
||||
r/python.lang.correctness
|
||||
./frappe-semgrep-rules/rules
|
||||
|
||||
Reference in New Issue
Block a user