Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions container-image/scan/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ you identify and fix software vulnerabilities before your images are deployed.
| **exclude-vulnerabilities** | The vulnerability IDs to exclude from the scan. | | `CVE-2021-44228` |
| **fail-on-min-cvss-score** | The minimum CVSS score of detected vulnerabilities that should return an exit code different from 0, and fail the build workflow. If no value is defined, the workflow will not fail. Possible values: any number between `0.0` and `10.0` (including decimal points) | | `7.8` |
| **fail-on-min-severity** | The minimum policy severity that should return an exit code different from 0, and fail the build workflow. If no value is defined, the workflow will not fail. Possible values: `information` `low` `medium` `high` `critical` | | `critical` |
| **include-excluded-vulnerabilities** | Include excluded (filtered-out) vulnerabilities in the scan response. Possible values: `none` `all` `min-severity` `min-cvss-score` `min-vpr-score` `exclude-vulnerabilities` `exclude-unresolvable` (comma-delimited) | `none` | `min-severity,exclude-unresolvable` |
| **logs** | Whether to print log messages to the standard workflow output. Log messages include information about the run process of the scanner and debug information, such as the number of files/lines scanned. Possible values: `true` `false` | `false` | `true` |
| **min-cvss-score** | The minimum CVSS score of detected vulnerabilities that you want included in the scan. Possible values: any number between `0.0` and `10.0` (including decimal points) | | `5.0` |
| **min-severity** | The minimum severity of Tenable Workload Protection policies that you want included in the scan. Possible values: `information` `low` `medium` `high` `critical` | `information` | `medium` |
Expand Down
6 changes: 6 additions & 0 deletions container-image/scan/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ inputs:
fail-on-min-cvss-score:
description: ''
required: false
include-excluded-vulnerabilities:
default: 'none'
description: ''
required: false
logs:
default: 'false'
description: ''
Expand Down Expand Up @@ -114,6 +118,8 @@ runs:
- ${{ inputs.fail-on-min-severity }}
- ${{ inputs.fail-on-min-cvss-score && '--fail-on-min-cvss-score'}}
- ${{ inputs.fail-on-min-cvss-score }}
- ${{ inputs.include-excluded-vulnerabilities && '--include-excluded-vulnerabilities' }}
- ${{ inputs.include-excluded-vulnerabilities }}
- ${{ inputs.logs != 'false' && '--logs' || ''}}
- ${{ inputs.min-cvss-score && '--min-cvss-score'}}
- ${{ inputs.min-cvss-score }}
Expand Down