File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,10 @@ inputs:
4343 path_prefix :
4444 description : ' Add this path prefix to the start of file locations'
4545 required : false
46+ ram :
47+ description : ' The amount of RAM to use for SpotBugs (in MB)'
48+ required : false
49+ default : ' 768'
4650
4751 # Allows for a custom runner home directory to be specified for self-hosted runners
4852 base_path :
@@ -104,17 +108,18 @@ runs:
104108 INPUT_FINDSECBUGS_VERSION : ${{ inputs.findsecbugs_version }}
105109 INPUT_SPOTBUGS_TARGET : ${{ inputs.spotbugs_target }}
106110 INPUT_SPOTBUGS_GLOB : ${{ inputs.spotbugs_filename_glob }}
111+ INPUT_RAM : ${{ inputs.ram }}
107112 SPOTBUGS_HOME : ${{ inputs.base_path }}/spotbugs+/spotbugs-${{ inputs.spotbugs_version }}
108113 FINDSECBUGS_HOME : ${{ inputs.base_path }}/findsecbugs+/
109114 SPOTBUGS_WORKING : ${{ inputs.base_path }}/spotbugs_working+/
110115 run : |
111116 mkdir -p "${SPOTBUGS_WORKING}"
112117 cd "${SPOTBUGS_WORKING}"
113118 SPOTBUGS_FILES=$(find "${GITHUB_WORKSPACE}/${INPUT_SPOTBUGS_TARGET}" -type f -name "${INPUT_SPOTBUGS_GLOB}" -exec echo -n {} \+)
114- "${SPOTBUGS_HOME}/bin/spotbugs" -textui -quiet -effort:max -low -bugCategories SECURITY -pluginList "${FINDSECBUGS_HOME}/findsecbugs-plugin-${INPUT_FINDSECBUGS_VERSION}.jar" -sarif=spotbugs.sarif ${SPOTBUGS_FILES}
119+ "${SPOTBUGS_HOME}/bin/spotbugs" -maxHeap "${INPUT_RAM}" - textui -quiet -effort:max -low -bugCategories SECURITY -pluginList "${FINDSECBUGS_HOME}/findsecbugs-plugin-${INPUT_FINDSECBUGS_VERSION}.jar" -sarif=spotbugs.sarif ${SPOTBUGS_FILES}
115120 shell : bash
116121 - name : Adjust file paths
117- if : inputs.path_prefix != null
122+ if : inputs.path_prefix != ''
118123 env :
119124 INPUT_PATH_PREFIX : ${{ inputs.path_prefix }}
120125 SPOTBUGS_WORKING : ${{ inputs.base_path }}/spotbugs_working+/
You can’t perform that action at this time.
0 commit comments