diff --git a/container-image/scan/README.md b/container-image/scan/README.md index d825c1d..f1f6d54 100644 --- a/container-image/scan/README.md +++ b/container-image/scan/README.md @@ -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` | diff --git a/container-image/scan/action.yml b/container-image/scan/action.yml index b496a70..31fa71f 100644 --- a/container-image/scan/action.yml +++ b/container-image/scan/action.yml @@ -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: '' @@ -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 }}