Skip to content

Commit 7cdf784

Browse files
authored
output some more info and add progress option
1 parent 87124df commit 7cdf784

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

action.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ branding:
55
color: 'blue'
66
inputs:
77
spotbugs-version:
8-
description: 'SpotBugs version to use.'
8+
description: 'SpotBugs version to use. Default: latest.'
99
default: 'latest'
1010
required: false
1111
packages:
@@ -49,6 +49,10 @@ inputs:
4949
The basePath is used as a prefix in the sarif file to help GitHub find the
5050
right file of the issue. It is tipically something like 'src/main/java'.
5151
required: false
52+
progress:
53+
description: >
54+
Set it to true to enable showing progress.
55+
required: false
5256
runs:
5357
using: "composite"
5458
steps:
@@ -63,4 +67,5 @@ runs:
6367
ARGUMENTS: ${{ inputs.arguments }}
6468
TARGET: ${{ inputs.target }}
6569
DEPENDENCIES_PATH: ${{ inputs.dependenciesPath }}
66-
BASE_PATH: ${{ inputs.basePath }}
70+
BASE_PATH: ${{ inputs.basePath }}
71+
PROGRESS: ${{ inputs.progress }}

analyze.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ if [ "$DEPENDENCIES_PATH" != "" ]; then
7373
echo "Scanning jars with: ${DEP_CMD}"
7474
eval ${DEP_CMD}
7575
CMD="$CMD -auxclasspathFromFile /tmp/jardependencies.txt"
76+
echo "Found dependencies: "
77+
cat /tmp/jardependencies.txt
78+
fi
79+
80+
if [ "$PROGRESS" == "true"]; then
81+
CMD="$CMD -progress"
7682
fi
7783

7884
if [ "$BASE_PATH" != "" ]; then

0 commit comments

Comments
 (0)