Skip to content

Commit 88248b0

Browse files
committed
ci: change to snyk scan
1 parent 7020b05 commit 88248b0

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/python-ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: |
4040
python -m pip install --upgrade pip
4141
pip install -r requirements.txt
42-
pip install flake8 black pytest pytest-cov snyk-python
42+
pip install flake8 black pytest pytest-cov
4343
4444
- name: Lint with flake8
4545
run: |
@@ -58,11 +58,12 @@ jobs:
5858
pytest --cov=app --cov-report=term-missing -v
5959
6060
- name: Security scan with Snyk
61+
uses: snyk/actions/python@master
62+
continue-on-error: true
6163
env:
6264
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
63-
run: |
64-
echo "Running Snyk security scan..."
65-
snyk test --severity-threshold=high --file=requirements.txt || echo "Snyk scan completed (warnings only)"
65+
with:
66+
args: --severity-threshold=high --file=requirements.txt
6667

6768
docker-build-and-push:
6869
name: Docker Build & Push

0 commit comments

Comments
 (0)