Skip to content

Commit 24e3ff2

Browse files
committed
chore: add snyk workflow
1 parent 04289ff commit 24e3ff2

6 files changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/lint.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Lint Check
2+
23
on:
34
workflow_call:
45

.github/workflows/main.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Main
2+
23
on:
34
pull_request:
45
push:
@@ -24,3 +25,9 @@ jobs:
2425
name: Tests
2526
needs: [lint, typecheck]
2627
uses: ./.github/workflows/tests.yaml
28+
29+
snyk:
30+
name: Snyk
31+
needs: [lint, typecheck, tests]
32+
uses: ./.github/workflows/snyk.yaml
33+
secrets: inherit

.github/workflows/snyk.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Snyk Security Scan
2+
3+
on:
4+
workflow_call:
5+
secrets:
6+
SNYK_TOKEN:
7+
required: true
8+
9+
jobs:
10+
security:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@master
14+
- name: Run Snyk to check for vulnerabilities
15+
uses: snyk/actions/python@master
16+
env:
17+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
18+
with:
19+
args: --severity-threshold=high

.github/workflows/tests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Tests
2+
23
on:
34
workflow_call:
45

.github/workflows/typecheck.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
name: Type Check
2+
23
on:
34
workflow_call:
45

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,6 @@ cython_debug/
143143

144144
# uv
145145
.uv/
146+
147+
# Snyk Security Extension - AI Rules (auto-generated)
148+
.cursor/rules/snyk_rules.mdc

0 commit comments

Comments
 (0)