Skip to content

Commit cd2345a

Browse files
authored
ci: remove semgrep from Python deps (#221)
This lighten the dependencies chain, making less packages to update and install.
1 parent 67e5c8a commit cd2345a

File tree

6 files changed

+17
-986
lines changed

6 files changed

+17
-986
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,11 @@ jobs:
2626
poetry run poe linters
2727
poetry run poe test
2828
poetry build
29+
semgrep:
30+
timeout-minutes: 20
31+
runs-on: ubuntu-24.04
32+
container:
33+
image: semgrep/semgrep:1.138.0
34+
steps:
35+
- uses: actions/checkout@v5
36+
- run: tools/semgrep

.mergify.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ queue_rules:
99
- check-success=Test with Python 3.10
1010
- check-success=Test with Python 3.11
1111
- check-success=Test with Python 3.12
12+
- check-success = semgrep
1213
- "#approved-reviews-by>=1"
1314
- "#changes-requested-reviews-by=0"
1415
- "#review-threads-unresolved=0"

poe.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ sequence = ["ruff check .", "ruff format --check .", "deptry .", "mypy"]
1515
[tool.poe.tasks.semgrep]
1616
deps = ["setup"]
1717
help = "Run SAST tools"
18-
cmd = "semgrep --config=auto --error --timeout=15"
18+
cmd = "tools/semgrep"
1919

2020
[tool.poe.tasks.test]
2121
deps = ["setup"]

0 commit comments

Comments
 (0)