@@ -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
2735runs :
@@ -107,6 +115,14 @@ runs:
107115 --format ${{ inputs.output-formats }}
108116 --no-color
109117
118+ - name : Check compliance
119+ if : inputs.check-compliance == 'true'
120+ shell : bash
121+ run : scanpipe check-compliance
122+ --project ${{ inputs.project-name }}
123+ --fail-level ${{ inputs.compliance-fail-level }}
124+ --no-color
125+
110126 - name : Upload outputs
111127 uses : actions/upload-artifact@v4
112128 id : artifact-upload-step
0 commit comments