Skip to content

Commit a0ef0c0

Browse files
committed
fixing snyk because teh action doesn't work
1 parent cce49ad commit a0ef0c0

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/unit-sec-test.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
run: |
1717
pip install -r requirements.txt
1818
19-
2019
- name: Run tests
2120
run: pytest tests/
2221

@@ -29,22 +28,22 @@ jobs:
2928
actions: read
3029
runs-on: ubuntu-latest
3130
steps:
31+
- name: Checkout code
32+
uses: actions/checkout@v4
3233

33-
- uses: actions/checkout@v4
34-
- name: 'Setup Python ${{ matrix.python-version}}'
35-
uses: actions/setup-python@v3
36-
with:
37-
python-version: '${{ matrix.python-version}}'
38-
34+
- name: Installing Snyk
35+
run: |
36+
npm install -g snyk
37+
3938
- name: Install dependencies
4039
run: |
4140
pip install -r requirements.txt
4241
python -m pip install --upgrade pip
43-
44-
- name: Run Snyk to check for vulnerabilities
45-
uses: snyk/actions/python@master
46-
env:
47-
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
42+
43+
- name: Snyk Code test
44+
run: |
45+
snyk code test --sarif > snyk-cide.sarif
46+
synk test --sarif > snyk-test.sarif
4847
4948
# Scan the contianer and lists all security vulnerabilities
5049
trivy_scans:

0 commit comments

Comments
 (0)