Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#37: Added new option for includenewmodules #38

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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**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 All @@ -97,6 +99,7 @@ runs:
- ${{ inputs.scantimeout }}
- ${{ inputs.exclude }}
- ${{ inputs.include }}
- ${{ inputs.includenewmodules }}
- ${{ inputs.criticality }}
- ${{ inputs.pattern }}
- ${{ inputs.replacement }}
Expand Down
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 " -autoscan \"true\" -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