Skip to content

Commit

Permalink
Add fail action for fixable vulns
Browse files Browse the repository at this point in the history
  • Loading branch information
timarenz committed Nov 19, 2021
1 parent dd7ec59 commit c939968
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ This is an example on how the Lacework scanner can be used as GitHub action. Thi

## What's new

### v0.5.1
* Reintroduce fail only if fixable vulnerabilities found
* Update to action description

### v0.5.0
* Changed variables and how this action works to make the user expirence consitent across differnt CI platforms like Bitbucket, GitHub Actions, CircleCI, etc.
* Changed exit codes, action will fail with exit code 1 regardles of the severity of the vulnerability / policy.
Expand Down Expand Up @@ -32,7 +36,7 @@ jobs:
build:
# ...
steps:
- uses: timarenz/lw-scanner-action:v0.4.0
- uses: timarenz/lw-scanner-action:v0.5.1
name: Scan container images for vulnerabitilies using Lacework
with:
# Your Lacework account name. For example, if your login URL is mycompany.lacework.net, the account name is mycompany.
Expand All @@ -53,7 +57,7 @@ jobs:
BUILD_REPORT_FILE_NAME: myreport.html
# Fail the build of vulnerabilities are discovered according to the threshold. (Default: true)
FAIL_BUILD: true
# Severity threshold that will fail the build: info, low, medium, high, critical. (Default: medium)
# Severity threshold that will fail the build: info, low, medium, high, critical, fixable. (Default: medium)
SEVERITY_THRESHOLD: medium
# Use the Lacework policy managed feature (beta). If enabled this overwrites `FAIL_BUILD`and `SEVERITY_THRESHOLD`. (Default: false)
USE_POLICY: false
Expand Down
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ inputs:
required: false
default: "true"
SEVERITY_THRESHOLD:
description: "Severity threshold that will fail the build: info, low, medium, high, critical. (Default: medium)"
description: "Severity threshold that will fail the build: info, low, medium, high, critical, fixable. (Default: medium)"
required: false
default: "medium"
USE_POLICY:
Expand Down

0 comments on commit c939968

Please sign in to comment.