File tree Expand file tree Collapse file tree 5 files changed +32
-1
lines changed
Expand file tree Collapse file tree 5 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 2222 java-version : 1.8
2323 - name : Build with Maven
2424 run : mvn -B package --file pom.xml
25+ - name : Run findSecBugs scan
26+ run : |
27+ chmod +x ./findsecbugs-cli-1.10.1/findsecbugs.sh
28+ ./findsecbugs-cli-1.10.1/findsecbugs.sh -progress -html -output report.htm target/JavaVulnerableLab.war
Original file line number Diff line number Diff line change 77.project
88.classpath
99factoryConfiguration.json
10-
10+ report.htm
1111# ## Eclipse ###
1212
1313.metadata
Original file line number Diff line number Diff line change 1+ @ echo off
2+ java -cp %~dp0 lib/* edu.umd.cs.findbugs.LaunchAppropriateUI -quiet -pluginList %~dp0 lib/findsecbugs-plugin-1.10.1.jar -include %~dp0 include.xml %*
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ SOURCE=" ${BASH_SOURCE[0]} "
4+ while [ -h " $SOURCE " ]; do # resolve $SOURCE until the file is no longer a symlink
5+ DIR=" $( cd -P " $( dirname " $SOURCE " ) " > /dev/null 2>&1 && pwd ) "
6+ SOURCE=" $( readlink " $SOURCE " ) "
7+ [[ $SOURCE != /* ]] && SOURCE=" $DIR /$SOURCE " # if $SOURCE was a relative symlink, we need to resolve it relative to the path where the symlink file was located
8+ done
9+ DIR=" $( cd -P " $( dirname " $SOURCE " ) " > /dev/null 2>&1 && pwd ) "
10+ FINDBUGS_PLUGIN=" $( find " $DIR " /lib/findsecbugs-plugin-* | sort --version-sort | tail -n1) "
11+
12+ for LIB in " $DIR " /lib/* .jar; do
13+ if [[ -z " ${LIBS// } " ]]; then
14+ LIBS=$LIB
15+ else
16+ LIBS=$LIB :$LIBS
17+ fi
18+ done
19+
20+ java -cp " $LIBS " edu.umd.cs.findbugs.LaunchAppropriateUI -quiet -pluginList " $FINDBUGS_PLUGIN " -include " $DIR " /include.xml $@
Original file line number Diff line number Diff line change 1+ <FindBugsFilter >
2+ <Match >
3+ <Bug category =" SECURITY" />
4+ </Match >
5+ </FindBugsFilter >
You can’t perform that action at this time.
0 commit comments