Skip to content

Commit e6da009

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

File tree

1 file changed

+32
-22
lines changed

1 file changed

+32
-22
lines changed

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

Lines changed: 32 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,33 +18,43 @@ 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+
- uses: snyk/actions/setup@master
27+
- uses: actions/setup-python@master
28+
- name: Snyk test
29+
run: snyk test
30+
env:
31+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
3332

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

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

44-
- name: Snyk Code test
45-
run: |
46-
snyk code test --sarif > snyk-cide.sarif
47-
synk test --sarif > snyk-test.sarif
54+
# - name: Snyk Code test
55+
# run: |
56+
# snyk code test --sarif > snyk-cide.sarif
57+
# synk test --sarif > snyk-test.sarif
4858

4959
# Scan the contianer and lists all security vulnerabilities
5060
trivy_scans:

0 commit comments

Comments
 (0)