-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for
--ignore-unfixed
flag (#10)
Resolves: #9
- Loading branch information
Showing
2 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,11 +41,12 @@ jobs: | |
run: | | ||
docker build -t docker.io/my-organization/my-app:${{ github.sha }} . | ||
- name: Run vulnerability scanner | ||
uses: aquasecurity/[email protected].6 | ||
uses: aquasecurity/[email protected].7 | ||
with: | ||
image-ref: 'docker.io/my-organization/my-app:${{ github.sha }}' | ||
format: 'table' | ||
exit-code: '1' | ||
ignore-unfixed: true | ||
severity: 'CRITICAL,HIGH' | ||
``` | ||
|
@@ -55,12 +56,13 @@ jobs: | |
Following inputs can be used as `step.with` keys: | ||
|
||
| Name | Type | Default | Description | | ||
|-------------|--------|------------------------------------|-----------------------------------------------| | ||
| `image-ref` | String | | Image reference, e.g. `alpine:3.10.2` | | ||
| `format` | String | `table` | Output format (`table`, `json`) | | ||
| `exit-code` | String | `0` | Exit code when vulnerabilities were found | | ||
| `severity` | String | `UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL` | Severities of vulnerabilities to be displayed | | ||
| Name | Type | Default | Description | | ||
|------------------|---------|------------------------------------|-----------------------------------------------| | ||
| `image-ref` | String | | Image reference, e.g. `alpine:3.10.2` | | ||
| `format` | String | `table` | Output format (`table`, `json`) | | ||
| `exit-code` | String | `0` | Exit code when vulnerabilities were found | | ||
| `ignore-unfixed` | Boolean | false | Ignore unpatched/unfixed vulnerabilities | | ||
| `severity` | String | `UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL` | Severities of vulnerabilities to be displayed | | ||
|
||
[release]: https://github.com/aquasecurity/trivy-action/releases/latest | ||
[release-img]: https://img.shields.io/github/release/aquasecurity/trivy-action.svg?logo=github | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters