Commit graph

586 commits

Author SHA1 Message Date
Alex Goodman
1368ea05cd
Add additional DB archive decompressors (#657) 2022-03-07 11:44:43 -05:00
Keith Zantow
fc8e13f5b8
Support for SBOMs with incomplete linux distribution or CPE information (#606) 2022-03-03 16:31:46 -05:00
Alex Goodman
ad9918a681
Add gosimports linter (#647) 2022-03-03 14:50:24 -05:00
Alex Goodman
4af3cf7455
reduce PR CI pain and flakyness (#652) 2022-03-02 14:03:19 -05:00
Keith Zantow
ff424d3adc
Bump Syft for CycloneDX input (#650) 2022-03-02 10:05:01 -05:00
Alex Goodman
b0c8dc0e57
Share import mac code signing certificate steps for release (#646) 2022-02-26 23:11:24 +00:00
Alex Goodman
16cd14519a
Bump syft to release version v0.39.0 (#645)
* bump syft to v0.39.0

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update ByCriteria to log error on failure

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>

* integration tests now pass

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>

* bump to v0.39.3

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* raise search failures to warn

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* tidy go.mod/sum

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

Co-authored-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-02-26 17:28:08 -05:00
Fabrice Jammes
cfc4f8b6f1
Add clarifying message to install command (#608)
Signed-off-by: Dan Luhring <dan+github@luhrings.com>

Co-authored-by: Dan Luhring <dan+github@luhrings.com>
2022-02-25 21:19:42 +00:00
Alex Goodman
3a22a56d11
Restore behavior of JSON distro block (#643) 2022-02-24 11:10:41 -05:00
Batuhan Apaydın
55b71405ab
Enhance container image labels for ArtifactHub (#639) 2022-02-24 09:27:55 -05:00
Alex Goodman
598af89b2e
Upgrade install.sh to support installations for previous versions (#636) 2022-02-15 17:29:24 -05:00
Alex Goodman
f29a0d06d8
Bump syft to v0.38.0 for release (#635) 2022-02-15 19:03:55 +00:00
Christopher Angelo Phillips
2ac7e17c25
remove duplicate manifest (#634) 2022-02-15 13:34:09 -05:00
Alex Goodman
5aa85338d6
Normalize release assets and refactor install.sh (#630)
* refactor release to keep snapshot assets in parity with release assets

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* refactor install.sh and put under test

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* tidy go.sum

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* add mac acceptance test to github actions workflow

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* rm use of goreleaser in cli tests

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* go mod tidy with go 1.17

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2022-02-11 19:24:25 +00:00
Christopher Angelo Phillips
d2dba7d14a
update golang crypto to resolve CVE-2020-29652 (#631)
Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-02-11 13:37:17 -05:00
Christopher Angelo Phillips
16e6bee766
update go -> 1.17 (#628)
Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-02-11 10:50:13 -05:00
Alex Goodman
c9f2716389
Abstract upstream package before matching (#607)
* add metadata extraction from pURLs

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* extract upstream packages before matching

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* put pkg.UpstreamPackages under test

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* remove pURL related processing

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* pull in syft spdx decoding

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* allow for more flexible GHSA namespace and source extraction

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* add matching parity integration tests for all supported formats

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* bump syft to get spdx tv fix

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2022-02-10 21:43:12 +00:00
Jonas Xavier
42ca8c61d3
Ensure completion of UI progress bar (#627) 2022-02-10 08:03:15 -08:00
Jonas Xavier
a8c65807fc
update stereoscope version to include Podman (#612)
* update stereoscope

Signed-off-by: Jonas Galvão Xavier <jonas.agx@gmail.com>

* go mod tidy

Signed-off-by: Jonas Galvão Xavier <jonas.agx@gmail.com>

* test stereoscope with fix

Signed-off-by: Jonas Galvão Xavier <jonas.agx@gmail.com>

* remove mod replacement and use latest stereoscope

Signed-off-by: Jonas Galvão Xavier <jonas.agx@gmail.com>
2022-02-01 14:45:11 -08:00
Dan Nurmi
0ce1c43d40
Add list of public data feeds that are sourced when populating grype's vulnerability database (#618) 2022-02-01 02:32:34 +00:00
Sambhav Kothari
346df07df5
Add sprig templating functions for grype output (#610)
Signed-off-by: Sambhav Kothari <skothari44@bloomberg.net>
2022-01-28 11:27:27 -05:00
Vijay Pillai
e21f37494e
Update go-bouncer to v0.3.0 (#605)
Signed-off-by: Vijay Pillai <vijay.pillai@anchore.com>
2022-01-26 16:15:33 +00:00
Alex Goodman
2f8682b3db
Add ability to merge matches (#602)
* enable merging of matches

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* add ability for matches constructor to take initial matches

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update tests to include IDs on package objects

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* rename common matcher helper package to search package

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* rename search functions and add SearchByCriteria

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* cleanup imports

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2022-01-25 10:29:16 -05:00
Weston Steimel
7e4e1e3158
convert from deprecated org.label-schema to OCI Annotations (#599)
Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
2022-01-21 21:58:51 +00:00
Christopher Angelo Phillips
3ba7e56e42
remove goreleaser replacements and update checksum removals (#598)
Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-01-20 18:22:23 +00:00
Christopher Angelo Phillips
e453a06551
upgrade syft to v0.36.0 (#597)
* upgrade syft dependencies

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>

* add basic metadata for coverage

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-01-20 12:47:15 -05:00
Dan Luhring
bc0f4eb9b2
Bump syft to include file source fix (#596)
Signed-off-by: Dan Luhring <dan+github@luhrings.com>
2022-01-18 19:29:31 +00:00
Christopher Angelo Phillips
a2e82ee8f0
Update goreleaser so Windows included in checksum (#594)
* update goreleaser so windows included in checksum

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-01-14 13:13:17 -05:00
Alex Goodman
6e3aa6a8d7
Add strong distro type (#585)
* add strong distro type

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* nit changes

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* update grype/db package to use distro pointer

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* source distro type from release name

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* bump syft to pull in distro type updates

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* bump lint timeout

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2022-01-12 13:47:27 -05:00
Alex Goodman
2647cd0d9e
Port grype-db to grype (#587)
* port grype-db to grype

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* migrate vulnerability provider implementation to db package

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* upgrade path import validations

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>

* fix linting issues

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2022-01-12 10:03:22 -05:00
Christopher Angelo Phillips
24ef03efc4
update to secure syft version (#586)
* update to secure syft version

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>

* go mod tidy

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-01-11 10:33:58 -05:00
Christopher Angelo Phillips
7fbe20c223
upgrade stereoscope (#584)
* bump stereoscope to remove vulnerable containerd

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>

* go mod tidy

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-01-10 15:05:52 -05:00
Alex Goodman
c88ee0e8f5
add expose minimal search configuration (#579)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2022-01-09 06:14:57 -05:00
Christopher Angelo Phillips
64d4dbb993
update syft version for new release (#578)
* update syft

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>

* update CatalogPackages to use new cataloger config struct

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>

* add new valid CPE to matcher tests
Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>

* update integration tests

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-01-07 17:57:44 -05:00
Christopher Angelo Phillips
3a1531f8f5
remove stale folder (#575)
Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2022-01-04 19:18:30 +00:00
Christopher Angelo Phillips
9f44aa89b0
Add basic vulnerability summary documentation (#574)
* add basic vulnerability summary to README

Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2022-01-04 09:45:37 -05:00
Richard Mayes
75bb4ce9e3
fix(docs): fix issue with template command example (#540)
Signed-off-by: Richard Mayes <richard.mayes@watchfinder.co.uk>
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-22 16:25:52 -05:00
Alex Goodman
b100315292
bump syft to v0.34.0 (#567)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-22 16:20:23 -05:00
Christopher Angelo Phillips
349aa863f9
update so cp statement cane use coreutils and /bin (#566)
Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-12-22 14:52:23 -05:00
Keith Zantow
b618b84bac
Ignore explicit list of log4j false positive matches (#559) 2021-12-22 13:27:41 -05:00
Jonas Galvão Xavier
2cc631a25a
Grype verbose log version (#556)
* add version to logs

Signed-off-by: Jonas Galvão Xavier <jonas.agx@gmail.com>

* log when looking for updates

Signed-off-by: Jonas Galvão Xavier <jonas.agx@gmail.com>
2021-12-21 12:23:37 -08:00
Keith Zantow
647d6fb770
Add --exclude flag (#551) 2021-12-21 12:52:07 -05:00
Dan Luhring
b3ea488df4
Add support for file scheme to presenter model (#557)
* Add failing test for covering all source schemes

Signed-off-by: Dan Luhring <dan+github@luhrings.com>

* Add failing test for file scheme

Signed-off-by: Dan Luhring <dan+github@luhrings.com>

* Add support for file scheme to model

Signed-off-by: Dan Luhring <dan+github@luhrings.com>
2021-12-19 18:03:05 -05:00
Alex Goodman
4f964c4ee2
bump syft to v0.33.0 (#550)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-16 09:49:36 -05:00
Dan Luhring
2bb0364cfe
Fix panic in FromCatalog function (#547)
* Add test to assert no panic in FromCatalog

Signed-off-by: Dan Luhring <dan+github@luhrings.com>

* Adjust loop to append packages

Signed-off-by: Dan Luhring <dan+github@luhrings.com>
2021-12-16 08:40:03 -05:00
Eng Zer Jun
0781fb028b
refactor: move from io/ioutil to io and os packages (#543)
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-12-15 09:35:04 -05:00
Alex Goodman
81a16c4142
bump syft to v0.32.2 (#541)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-14 17:39:05 +00:00
Alex Goodman
73d2971914
M1 install.sh script should use zip (#539)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-14 10:50:07 -05:00
Alex Goodman
3f23425fa5
bump syft to v0.32.1 (#535)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-14 02:03:13 +00:00
Alex Goodman
f2d02b0b09
pull in binary panic fix; closes #526 (#528)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-10 18:03:13 +00:00