Skip to content

Commit d1c6ce5

Browse files
committed
Fix the Project QuerySet
Signed-off-by: tdruez <[email protected]>
1 parent b807cfd commit d1c6ce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/find-vulnerabilities.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
shell: bash
2424
run: |
2525
scanpipe shell --command \
26-
'from scanpipe.models import Project; project = Project.objects.get(name=${{ inputs.project-name }}); vulnerability_count = project.discoveredpackages.vulnerable().count() + project.discovereddependencies.vulnerable().count(); print(vulnerability_count, "vulnerabilities found"); exit(1) if vulnerability_count else exit(0);'
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);'

0 commit comments

Comments
 (0)