Skip to content

Commit b479775

Browse files
committed
Add proper assertionf or validation of the workflow #1729
Signed-off-by: tdruez <[email protected]>
1 parent 0956cc2 commit b479775

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/check-sca-integrations.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ jobs:
4646
- name: Test running scanpipe for checking the loaded content
4747
shell: bash
4848
run: |
49-
scanpipe shell --command "from scanpipe.models import DiscoveredPackage; print(DiscoveredPackage.objects.count())"
50-
51-
# - name: Test running scanpipe for checking the loaded content
52-
# shell: bash
53-
# run: |
54-
# scanpipe status --project ${{ steps.scancode.inputs.project-name }}
49+
scanpipe shell --command "\
50+
from scanpipe.models import DiscoveredPackage; \
51+
package_manager = DiscoveredPackage.objects; \
52+
assert package_manager.count() > 90; \
53+
assert package_manager.vulnerable.count() > 40; \
54+
"

0 commit comments

Comments
 (0)