Skip to content

Commit 9f26637

Browse files
committed
Improve readability
Signed-off-by: tdruez <[email protected]>
1 parent d1c6ce5 commit 9f26637

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/find-vulnerabilities.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,13 @@ jobs:
2222
- name: Fail in case of vulnerabilities
2323
shell: bash
2424
run: |
25-
scanpipe shell --command \
26-
'from scanpipe.models import Project; project = Project.objects.get(); vulnerability_count = project.discoveredpackages.vulnerable().count() + project.discovereddependencies.vulnerable().count(); print(vulnerability_count, "vulnerabilities found"); exit(1) if vulnerability_count else exit(0);'
25+
scanpipe shell --command '
26+
from scanpipe.models import Project
27+
project = Project.objects.get()
28+
vulnerability_count = (
29+
project.discoveredpackages.vulnerable().count() +
30+
project.discovereddependencies.vulnerable().count()
31+
)
32+
print(vulnerability_count, "vulnerabilities found")
33+
exit(1) if vulnerability_count else exit(0)
34+
'

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ install_requires =
5151
wheel==0.45.1
5252
pip==25.0.1
5353
# Django
54-
Django==5.1.6
54+
Django==4.2.8
5555
asgiref==3.8.1
5656
typing_extensions==4.12.2
5757
sqlparse==0.5.3

0 commit comments

Comments
 (0)