Skip to content

Commit

Permalink
Close #9: adding a threshold parameter
Browse files Browse the repository at this point in the history
step is marked as failure when threshold param is lower then current
uploaded failures
  • Loading branch information
arolfes committed Feb 15, 2021
1 parent efe5b40 commit 394ec70
Show file tree
Hide file tree
Showing 8 changed files with 17,994 additions and 25,969 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ Optional. Title for the check run to create. Defaults to `SpotBugs Source Code A
### `token`
Optional. GitHub API access token. Defaults to `${{ github.token }}`, which is set by `actions/checkout@v2` minimally.

### `threshold`
Optional. Configures the threshold when this job is marked as failed if to many finding. Defaults to `0`.

## Example usage

```yaml
Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ inputs:
Also when generating a new PAT, select the least scopes necessary.
[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)
default: ${{ github.token }}
threshold:
description: 'Configures the threshold when this job is marked as failed if to many finding'
default: 0
runs:
using: 'node12'
main: 'dist/index.js'
Expand Down
Loading

0 comments on commit 394ec70

Please sign in to comment.