File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -916,9 +916,15 @@ jobs:
916
916
vulnerability-check : false
917
917
- name : " Report"
918
918
# make sure this step runs even if the previous failed
919
- if : ${{ failure() && steps.review.conclusion == 'failure' }}
919
+ if : always()
920
920
shell : bash
921
- env : # store comment HTML data in an environment variable
921
+ env :
922
922
VULNERABLE_CHANGES : ${{ steps.review.outputs.invalid-license-changes }}
923
923
run : |
924
- echo "$VULNERABLE_CHANGES" | jq
924
+ if [ -n "$VULNERABLE_CHANGES ]; then
925
+ echo "Invalid or unknown licenses detected, contact sreya to ensure your added dependency falls under one of our allowed licenses."
926
+ echo "$VULNERABLE_CHANGES" | jq
927
+ exit 1
928
+ else
929
+ echo "No incompatible licenses detected"
930
+ fi
You can’t perform that action at this time.
0 commit comments