Skip to content

Commit caaebf0

Browse files
committed
Test running scanpipe for checking the loaded content #1729
Signed-off-by: tdruez <[email protected]>
1 parent 4efd1d2 commit caaebf0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ jobs:
3636

3737
- name: Load the Trivy report SBOM into ScanCode.io
3838
uses: aboutcode-org/scancode-action@main
39+
id: scancode
3940
with:
4041
pipelines: "load_sbom"
41-
inputs-path: "${{ github.workspace }}"
42+
inputs-path: "${{ github.workspace }}/trivy-report.sbom.json"
43+
44+
- name: Use project name
45+
run: echo "Project is ${{ steps.scancode.outputs.project-name }}"
46+
47+
- name: Test running scanpipe for checking the loaded content
48+
shell: bash
49+
run: |
50+
scanpipe shell shell --command "from scanpipe.models import DiscoveredPackage; print(DiscoveredPackage.objects.count())"

0 commit comments

Comments
 (0)