Skip to content

Commit b803831

Browse files
committed
testing hoping that it actually works...
1 parent b766cbe commit b803831

File tree

1 file changed

+30
-22
lines changed

1 file changed

+30
-22
lines changed

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

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,41 @@ jobs:
1818
1919
- name: Run tests
2020
run: pytest tests/
21-
22-
23-
# Run snyk code scanning for vulnerabilities
24-
snyk_scan:
25-
permissions:
26-
contents: read
27-
security-events: write
28-
actions: read
21+
22+
stupid_snyk:
2923
runs-on: ubuntu-latest
3024
steps:
31-
- name: Checkout code
32-
uses: actions/checkout@v4
25+
- uses: actions/checkout@master
26+
- name: Run Snyk to check for vulnerabilities
27+
uses: snyk/actions/python@master
28+
env:
29+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
3330

34-
- name: Installing Snyk
35-
run: |
36-
npm install -g snyk
37-
snyk auth ${SNYK_TOKEN}
31+
# Run snyk code scanning for vulnerabilities
32+
# snyk_scan:
33+
# permissions:
34+
# contents: read
35+
# security-events: write
36+
# actions: read
37+
# runs-on: ubuntu-latest
38+
# steps:
39+
# - name: Checkout code
40+
# uses: actions/checkout@v4
41+
42+
# - name: Installing Snyk
43+
# run: |
44+
# npm install -g snyk
45+
# snyk auth ${SNYK_TOKEN}
3846

39-
- name: Install dependencies
40-
run: |
41-
pip install -r requirements.txt
42-
python -m pip install --upgrade pip
47+
# - name: Install dependencies
48+
# run: |
49+
# pip install -r requirements.txt
50+
# python -m pip install --upgrade pip
4351

44-
- name: Snyk Code test
45-
run: |
46-
snyk code test --sarif > snyk-cide.sarif
47-
synk test --sarif > snyk-test.sarif
52+
# - name: Snyk Code test
53+
# run: |
54+
# snyk code test --sarif > snyk-cide.sarif
55+
# synk test --sarif > snyk-test.sarif
4856

4957
# Scan the contianer and lists all security vulnerabilities
5058
trivy_scans:

0 commit comments

Comments
 (0)