@@ -11,17 +11,25 @@ inputs:
1111 description : " Relative path within the $GITHUB_WORKSPACE for pipeline inputs"
1212 default : " ${{ github.workspace }}/scancode-inputs"
1313 input-urls :
14- description : ' Provide one or more URLs to download for the pipeline run execution'
14+ description : " Provide one or more URLs to download for the pipeline run execution. "
1515 required : false
1616 default : " "
1717 project-name :
18- description : " Name of the project"
18+ description : " Name of the project. "
1919 default : " scancode-action"
2020 outputs-archive-name :
21- description : " Name of the outputs archive"
21+ description : " Name of the outputs archive. "
2222 default : " scancode-outputs"
23+ check-compliance :
24+ description : |
25+ Check for compliance issues in the project.
26+ Exits with a non-zero status if compliance issues are detected.
27+ compliance-fail-level :
28+ description : " Failure level for compliance check. Options: ERROR, WARNING, MISSING."
29+ default : " ERROR"
30+ required : false
2331 python-version :
24- description : " Python version"
32+ description : " Python version. "
2533 default : " 3.11"
2634 scancodeio-repo-branch :
2735 description : " Branch to install ScanCode.io from the GitHub repository (optional)"
6472
6573 - name : Run migrations to prepare the database
6674 shell : bash
67- run : scanpipe migrate
75+ run : scanpipe migrate --verbosity 0
6876
6977 - name : Generate `--pipeline` CLI arguments
7078 shell : bash
@@ -117,8 +125,14 @@ runs:
117125 shell : bash
118126 run : scanpipe output
119127 --project ${{ inputs.project-name }}
120- --format ${{ inputs.output-formats }}
121- --no-color
128+ --format ${{ inputs.output-formats }}
129+
130+ - name : Check compliance
131+ if : inputs.check-compliance == 'true'
132+ shell : bash
133+ run : scanpipe check-compliance
134+ --project ${{ inputs.project-name }}
135+ --fail-level ${{ inputs.compliance-fail-level }}
122136
123137 - name : Upload outputs
124138 uses : actions/upload-artifact@v4
0 commit comments