Skip to content

Commit b766cbe

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

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

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

Lines changed: 12 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,23 @@ 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+
snyk auth ${SNYK_TOKEN}
38+
3939
- name: Install dependencies
4040
run: |
4141
pip install -r requirements.txt
4242
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 }}
43+
44+
- name: Snyk Code test
45+
run: |
46+
snyk code test --sarif > snyk-cide.sarif
47+
synk test --sarif > snyk-test.sarif
4848
4949
# Scan the contianer and lists all security vulnerabilities
5050
trivy_scans:

0 commit comments

Comments
 (0)