Skip to content

Commit

Permalink
Merge pull request #39 from WESCO-International/feat/issue-37
Browse files Browse the repository at this point in the history
#37: Added new option for includenewmodules
  • Loading branch information
julz0815 authored May 2, 2023
2 parents 6597e67 + b706d8a commit 98e2a29
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -110,3 +112,4 @@ runs:
- ${{ inputs.scanpollinginterval }}
- ${{ inputs.javawrapperversion }}
- ${{ inputs.debug }}
- ${{ inputs.includenewmodules }}
7 changes: 7 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ deleteincompletescan=${21}
scanpollinginterval=${22}
javawrapperversion=${23}
debug=${24}
includenewmodules=${25}


echo "Required Information"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 98e2a29

Please sign in to comment.