Skip to content

Commit 2cdec5d

Browse files
authored
Merge pull request #2 from advanced-security/find-files
Find files
2 parents 1ef494c + 6f7d80e commit 2cdec5d

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ runs:
9191
SPOTBUGS_HOME: /home/runner/work/spotbugs+/spotbugs-${{ inputs.spotbugs_version }}
9292
FINDSECBUGS_HOME: /home/runner/work/findsecbugs+/
9393
run: |
94-
"${SPOTBUGS_HOME}"/bin/spotbugs -textui -quiet -effort:max -low -bugCategories SECURITY -pluginList "${FINDSECBUGS_HOME}"/findsecbugs-plugin-"${INPUT_FINDSECBUGS_VERSION}".jar -sarif=spotbugs.sarif "${INPUT_SPOTBUGS_TARGET}"
94+
SPOTBUGS_FILES=$(find "${INPUT_SPOTBUGS_TARGET}" -type f -exec echo -n {} \+)
95+
"${SPOTBUGS_HOME}"/bin/spotbugs -textui -quiet -effort:max -low -bugCategories SECURITY -pluginList "${FINDSECBUGS_HOME}"/findsecbugs-plugin-"${INPUT_FINDSECBUGS_VERSION}".jar -sarif=spotbugs.sarif ${SPOTBUGS_FILES}
9596
shell: bash
9697
- name: Upload SARIF file
9798
if: inputs.upload_sarif == 'true'

starter-workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Java
2121
uses: actions/setup-java@v3
2222
with:
23-
distribution: 'temurin'
23+
distribution: 'microsoft'
2424
java-version: 11
2525
# do your build steps. This example uses sbt
2626
- name: Compile with sbt
@@ -30,7 +30,7 @@ jobs:
3030
uses: advanced-security/spotbugs-findsecbugs-action@v1
3131
with:
3232
# set these appropriately for your project
33-
spotbugs_target: 'target/scala-*/classes'
33+
spotbugs_target: 'target/scala-2.13/classes' # cannot have globs
3434
# upload_sarif: 'true'
3535
# no_cache: 'false'
3636
# spotbugs_version: '4.7.3'

0 commit comments

Comments
 (0)