Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): add --fixable flag to vulnerability cmd
Adding the ability to display only fixable vulnerabilities by providing the new flag `--fixable`. Example: From a total of 15 vulnerabilities, display only the 5 that are fixable. ``` lacework vul report sha256:62dce44a0d2df7e3e3146817cc35681579c15a4ccd2c5d1f0bddb619fdd6dab8 --fixable CONTAINER IMAGE DETAILS | VULNERABILITIES ------------------------------------------------------------------------------------------+--------------------------------- ID sha256:1f40f2c68a11e338b7eda2264e71546ab1b5d6bc4c458bbd3785fd5efb3fc632 | SEVERITY COUNT FIXABLE Digest sha256:62dce44a0d2df7e3e3146817cc35681579c15a4ccd2c5d1f0bddb619fdd6dab8 | -----------+-------+---------- Registry index.docker.io | Critical 0 0 Repository techallylw/lacework-cli | High 0 0 Size 58.2 MB | Medium 4 1 Created At 2020-05-04T17:00:00+0000 | Low 9 4 Tags ubuntu-1804 | Info 2 0 | -----------------+----------+----------+--------------------------+--------------------------+-------------------------- CVE | SEVERITY | PACKAGE | CURRENT VERSION | FIX VERSION | INTRODUCED IN LAYER -----------------+----------+----------+--------------------------+--------------------------+-------------------------- CVE-2020-12243 | Medium | openldap | 2.4.45+dfsg-1ubuntu1.4 | 2.4.45+dfsg-1ubuntu1.5 | apt-get install curl -y -----------------+----------+----------+--------------------------+--------------------------+-------------------------- CVE-2019-1563 | Low | openssl | 1.1.1-1ubuntu2.1~18.04.5 | 1.1.1-1ubuntu2.1~18.04.6 | apt-get install curl -y -----------------+----------+----------+--------------------------+--------------------------+-------------------------- CVE-2019-1547 | Low | openssl | 1.1.1-1ubuntu2.1~18.04.5 | 1.1.1-1ubuntu2.1~18.04.6 | apt-get install curl -y -----------------+----------+----------+--------------------------+--------------------------+-------------------------- CVE-2019-1551 | Low | openssl | 1.1.1-1ubuntu2.1~18.04.5 | 1.1.1-1ubuntu2.1~18.04.6 | apt-get install curl -y -----------------+----------+----------+--------------------------+--------------------------+-------------------------- CVE-2019-1549 | Low | openssl | 1.1.1-1ubuntu2.1~18.04.5 | 1.1.1-1ubuntu2.1~18.04.6 | apt-get install curl -y -----------------+----------+----------+--------------------------+--------------------------+-------------------------- ``` GH: #126 Signed-off-by: Salim Afiune Maya <[email protected]>
- Loading branch information