Skip to content

Commit 92d4d41

Browse files
committed
Added fortify-scan.sh
1 parent e1a32b3 commit 92d4d41

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ rebel.xml
1313
.settings/
1414
bin/
1515
lombok.config
16+
*.fpr

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ext {
1414
apply from: "${gradleHelpersLocation}/repo-helper.gradle"
1515
apply from: "${gradleHelpersLocation}/junit-helper.gradle"
1616
apply from: "${gradleHelpersLocation}/version-helper.gradle"
17+
apply from: "${gradleHelpersLocation}/fortify-helper.gradle"
1718

1819
// Project and plugin version based on SCM information
1920
version = getProjectVersionAsBetaOrRelease(true)

fortify-scan.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
# Set scan options
4+
# Modular scan doesn't work properly yet, so for now we just add the fortify-ssc-parser-util build model
5+
# Note that either approach requires fortify-ssc-parser-util to be translated/scanned on the same machine
6+
# before running this script.
7+
#scanOpts="-include-modules fortify-ssc-parser-util -scan"
8+
scanOpts="-b fortify-ssc-parser-util -scan"
9+
10+
# Load and execute actual scan script from GitHub
11+
curl -s https://raw.githubusercontent.com/fortify-ps/gradle-helpers/1.0/fortify-scan.sh | bash -s - ${scanOpts}

0 commit comments

Comments
 (0)