Skip to content

Commit 479b648

Browse files
authored
Update action.yml
1 parent 84ea24f commit 479b648

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

action.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ inputs:
1919
upload_sarif:
2020
description: 'Whether to upload the SARIF file to GitHub Code Scanning'
2121
required: false
22+
type: boolean
2223
default: 'true'
2324
java_distribution:
2425
description: 'The Java distribution to use'
@@ -28,6 +29,11 @@ inputs:
2829
description: 'The Java version to use'
2930
required: false
3031
default: '11'
32+
no_cache:
33+
description: 'Do not use cached versions of the Spotbugs and FindSecBugs tools'
34+
required: false
35+
type: boolean
36+
default: 'false'
3137

3238
runs:
3339
using: "composite"
@@ -50,7 +56,7 @@ runs:
5056
path: findsecbugs-plugin-${{ inputs.findsecbugs_version }}.jar
5157
key: ${{ runner.os }}-findsecbugs-${{ inputs.findsecbugs_version }}
5258
- name: Get SpotBugs
53-
if: steps.cache-spotbugs.outputs.cache-hit != 'true'
59+
if: inputs.no_cache == 'false' && steps.cache-spotbugs.outputs.cache-hit != 'true'
5460
env:
5561
INPUT_SPOTBUGS_VERSION: ${{ inputs.spotbugs_version }}
5662
run: |
@@ -63,7 +69,7 @@ runs:
6369
echo "Got spotbugs-${INPUT_SPOTBUGS_VERSION}.tgz"
6470
shell: bash
6571
- name: Get FindSecBugs
66-
if: steps.cache-findsecbugs.outputs.cache-hit != 'true'
72+
if: inputs.no_cache == 'false' steps.cache-findsecbugs.outputs.cache-hit != 'true'
6773
env:
6874
INPUT_FINDSECBUGS_VERSION: ${{ inputs.findsecbugs_version }}
6975
run: |

0 commit comments

Comments
 (0)