diff --git a/README.md b/README.md index fc30e34..36e9ec7 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,10 @@ This action runs the Veracode Java Wrapper's 'upload and scan' action. **Optional** STRING - Include modules in modules selection / scanning. Case-sensitive, comma-separated list of module name patterns that represent the names of modules to scan as top-level modules. The * wildcard matches 0 or more characters. The ? wildcard matches exactly one character. +### `includenewmodules` + +**Optional** BOOLEAN - If scanallnonfataltoplevelmodules are true, set this parameter to true to automatically select all new top-level modules for inclusion in the scan. By default, the scan only includes previously selected modules. + ### `criticality` **Optional** STRING - Set the business criticality, autoamtically choosing the corresponding policy to rate findings. Options: VeryHigh, High, Medium, Low, VeryLow diff --git a/action.yml b/action.yml index 39b5028..a00b23d 100644 --- a/action.yml +++ b/action.yml @@ -76,7 +76,9 @@ inputs: debug: description: 'show detailed diagnostic information, which you can use for debugging, in the output.' required: false - + includenewmodules: + description: 'automatically select all new top-level modules for inclusion in the scan' + required: false # outputs: @@ -110,3 +112,4 @@ runs: - ${{ inputs.scanpollinginterval }} - ${{ inputs.javawrapperversion }} - ${{ inputs.debug }} + - ${{ inputs.includenewmodules }} diff --git a/entrypoint.sh b/entrypoint.sh index 3b82c9d..f5c75e6 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -28,6 +28,7 @@ deleteincompletescan=${21} scanpollinginterval=${22} javawrapperversion=${23} debug=${24} +includenewmodules=${25} echo "Required Information" @@ -70,6 +71,7 @@ echo "deleteincompletescan: ${21}" echo "scanpollinginterval: ${22}" echo "javawrapperversion: ${23}" echo "debug: ${24}" +echo "includenewmodules: ${25}" #Check if required parameters are set @@ -256,6 +258,11 @@ then echo " -debug \"$debug\"" >> runJava.sh fi +if [ "$includenewmodules" ] # +then + echo " -includenewmodules \"$includenewmodules\"" >> runJava.sh +fi + curl -sS -o VeracodeJavaAPI.jar "https://repo1.maven.org/maven2/com/veracode/vosp/api/wrappers/vosp-api-wrappers-java/$javawrapperversion/vosp-api-wrappers-java-$javawrapperversion.jar" chmod 777 runJava.sh cat runJava.sh