Skip to content

Commit

Permalink
ci: move semgrep rules out of repo (#28067)
Browse files Browse the repository at this point in the history
Moving semgrep rules out of repos as it's unnecessary to maintain
same ruleset for different repos and different branches.

(cherry picked from commit cc1baae)

# 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
  • Loading branch information
ankush authored and mergify-bot committed Oct 22, 2021
1 parent 60620fe commit 7ea3eb3
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 296 deletions.
38 changes: 0 additions & 38 deletions .github/helper/semgrep_rules/README.md

This file was deleted.

34 changes: 0 additions & 34 deletions .github/helper/semgrep_rules/report.yml

This file was deleted.

6 changes: 0 additions & 6 deletions .github/helper/semgrep_rules/security.py

This file was deleted.

10 changes: 0 additions & 10 deletions .github/helper/semgrep_rules/security.yml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/helper/semgrep_rules/translate.js

This file was deleted.

61 changes: 0 additions & 61 deletions .github/helper/semgrep_rules/translate.py

This file was deleted.

64 changes: 0 additions & 64 deletions .github/helper/semgrep_rules/translate.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/helper/semgrep_rules/ux.js

This file was deleted.

30 changes: 0 additions & 30 deletions .github/helper/semgrep_rules/ux.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,28 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
<<<<<<< HEAD
=======

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install and Run Pre-commit
uses: pre-commit/action@v2.0.3

- name: Download Semgrep rules
run: git clone --depth 1 https://github.com/frappe/frappe-semgrep-rules.git

>>>>>>> cc1baae5eb (ci: move semgrep rules out of repo (#28067))
- uses: returntocorp/semgrep-action@v1
env:
SEMGREP_TIMEOUT: 120
with:
config: >-
r/python.lang.correctness
<<<<<<< HEAD
.github/helper/semgrep_rules

- name: Set up Python 3.8
Expand All @@ -25,3 +41,6 @@ jobs:

- name: Install and Run Pre-commit
uses: pre-commit/action@v2.0.0
=======
./frappe-semgrep-rules/rules
>>>>>>> cc1baae5eb (ci: move semgrep rules out of repo (#28067))

0 comments on commit 7ea3eb3

Please sign in to comment.