Skip to content

Commit 9e22c16

Browse files
authored
Merge pull request #176 from lcollins/lc-enhancements-2024
Enhancements
2 parents c2b6702 + 6b2338e commit 9e22c16

File tree

8 files changed

+1572
-5278
lines changed

8 files changed

+1572
-5278
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ Optional. Title for the check run to create. Defaults to `SpotBugs Source Code A
2828
### `token`
2929
Optional. GitHub API access token. Defaults to `${{ github.token }}`, which is set by `actions/checkout@v2` minimally.
3030

31+
### `fail-on-violation`
32+
Optional. Whether to fail the check if any violations are found. Defaults to `false`.
33+
3134
## Example usage
3235

3336
```yaml
@@ -52,7 +55,7 @@ jobs:
5255
${{ runner.os }}-maven-
5356
- name: Build with Maven
5457
run: mvn -B verify spotbugs:spotbugs
55-
- uses: lcollins/spotbugs-github-action@v2.0.0
58+
- uses: lcollins/spotbugs-github-action@v3.0.0
5659
with:
5760
path: '**/spotbugsXml.xml'
5861
```

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ inputs:
2020
Also when generating a new PAT, select the least scopes necessary.
2121
[Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
2222
default: ${{ github.token }}
23+
fail-on-violation:
24+
description: 'Enables status markers to be added to check'
25+
default: false
26+
required: false
2327
runs:
2428
using: 'node20'
2529
main: 'dist/index.js'

0 commit comments

Comments
 (0)