Skip to content

Commit

Permalink
ci: move semgrep to ci only (#11)
Browse files Browse the repository at this point in the history
This avoids installing semgrep in poetry dependencies and pulling tons
of libs.
  • Loading branch information
jd authored Dec 13, 2024
1 parent 94d212f commit a6ec61c
Show file tree
Hide file tree
Showing 4 changed files with 119 additions and 603 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,18 @@ jobs:
poetry run poe linters
poetry run poe test
poetry build
semgrep:
timeout-minutes: 20
runs-on: ubuntu-24.04
container:
image: semgrep/semgrep:1.100.0
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Run Semgrep
run: |
semgrep --config=auto --error --timeout=15 .
1 change: 0 additions & 1 deletion poe.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ sequence = [
"ruff format --check .",
"mypy",
"codespell",
"semgrep --config=auto --error --timeout=15",
"yamllint .",
]

Expand Down
Loading

0 comments on commit a6ec61c

Please sign in to comment.