File tree Expand file tree Collapse file tree 4 files changed +25
-15
lines changed Expand file tree Collapse file tree 4 files changed +25
-15
lines changed Original file line number Diff line number Diff line change 29
29
jobs :
30
30
check-bandit :
31
31
name : " 🦹♂️ Bandit"
32
- runs-on : ubuntu-22.04
32
+ runs-on : ubuntu-latest
33
33
34
34
steps :
35
35
- name : Get source code
43
43
cache-dependency-path : " requirements/security.txt"
44
44
45
45
- name : Install project requirements
46
- run : |
47
- python -m pip install -U pip setuptools wheel
46
+ run : python -m pip install -U pip setuptools wheel
48
47
49
48
- name : Install security dependencies
50
49
run : python -m pip install -U -r requirements/security.txt
54
53
55
54
check-safety :
56
55
name : " 🛡 Safety PyUp"
57
- runs-on : ubuntu-22.04
56
+ runs-on : ubuntu-latest
58
57
59
58
steps :
60
59
- name : Get source code
@@ -68,11 +67,12 @@ jobs:
68
67
cache-dependency-path : " requirements/security.txt"
69
68
70
69
- name : Install project requirements
71
- run : |
72
- python -m pip install -U pip setuptools wheel
70
+ run : python -m pip install -U pip setuptools wheel
73
71
74
72
- name : Install security dependencies
75
73
run : python -m pip install -U -r requirements/security.txt
76
74
77
- - name : Run Safety check
78
- run : safety check --output text --short-report -r requirements/base.txt
75
+ - name : Run Safety scan (pyupio)
76
+ uses : pyupio/safety-action@v1
77
+ with :
78
+ api-key : ${{ secrets.SAFETY_API_KEY }}
Original file line number Diff line number Diff line change
1
+ [project]
2
+ id = qgis-deployment-cli
3
+ url = /codebases/qgis-deployment-cli/findings
4
+ name = qgis-deployment-cli
Original file line number Diff line number Diff line change @@ -56,16 +56,22 @@ Then open the `bandit_report.csv` file.
56
56
57
57
### Run Safety check
58
58
59
- In a terminal:
59
+ To run Safety CLI locally, an authenticated account is required:
60
+
61
+ ``` sh
62
+ safety auth
63
+ ```
64
+
65
+ Then:
60
66
61
67
``` sh
62
- safety check --full-report --output screen -r requirements/base.txt
68
+ safety scan --full-report --output screen -r requirements/base.txt
63
69
```
64
70
65
- It's also possible to get results in a text format :
71
+ It's also possible to get results as HTML :
66
72
67
73
``` sh
68
- safety check --full-report --output text -r requirements/base.txt > safety_report.txt
74
+ safety scan --full-report --output html -r requirements/base.txt > safety_report.html
69
75
```
70
76
71
- Then open the ` safety_report.txt ` file.
77
+ Then open the ` safety_report.html ` file.
Original file line number Diff line number Diff line change 1
- bandit>=1.7.5,<1.9
2
- safety>=2 .3.5,<3. 4
1
+ bandit>=1.8.3,<2
2
+ safety>=3 .3.1,< 4
You can’t perform that action at this time.
0 commit comments