Skip to content

Commit 3359dbc

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

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

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

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,25 @@ jobs:
3131
uses: actions/upload-artifact@v4
3232
with:
3333
name: upload-trivy-sbom-report
34-
path: "${{ github.workspace }}/trivy-report.sbom.json"
34+
path: "${{ github.workspace }}/reports/trivy-report.sbom.json"
3535
retention-days: 20
3636

3737
- name: Load the Trivy report SBOM into ScanCode.io
3838
uses: aboutcode-org/scancode-action@main
3939
id: scancode
4040
with:
4141
pipelines: "load_sbom"
42-
inputs-path: "${{ github.workspace }}/trivy-report.sbom.json"
42+
inputs-path: "${{ github.workspace }}/reports/"
4343

4444
- name: Use project name
45-
run: echo "Project is ${{ steps.scancode.outputs.project-name }}"
45+
run: echo "Project is ${{ steps.scancode.inputs.project-name }}"
4646

4747
- name: Test running scanpipe for checking the loaded content
4848
shell: bash
4949
run: |
50-
scanpipe shell shell --command "from scanpipe.models import DiscoveredPackage; print(DiscoveredPackage.objects.count())"
50+
scanpipe shell --command "from scanpipe.models import DiscoveredPackage; print(DiscoveredPackage.objects.count())"
51+
52+
- name: Test running scanpipe for checking the loaded content
53+
shell: bash
54+
run: |
55+
scanpipe status --project ${{ steps.scancode.inputs.project-name }}

0 commit comments

Comments
 (0)