Commit graph

543 commits

Author SHA1 Message Date
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
Alex Goodman
e62186725b
bump syft to v0.32.0 (#524)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-08 21:52:34 +00:00
Bala Raman
8abc83f685
Adding AlmaLinux OS Support (#514)
* Adding AlmaLinux OS Support

Signed-off-by: Bala Raman <srbala@gmail.com>

* incorporate grype-db updates for ALMA linux

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

Co-authored-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-07 16:55:33 -05:00
Dan Luhring
4bb841e97d
Add section for community meetings (#521)
Signed-off-by: Dan Luhring <dan+github@luhrings.com>
2021-12-06 12:18:30 -05:00
Alex Goodman
a7ce318b20
fix release quality gate section (#518)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-03 17:11:26 +00:00
Alex Goodman
270606ad37
bump syft to v0.31.0 (#517)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-03 16:56:43 +00:00
Alex Goodman
86b7d165e2
Add db list command (#506)
* add db list command

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

* add stderr print helper

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

* update docs to with details about listing files and DB curation

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-12-03 16:43:50 +00:00
Dan Luhring
2867dc0118
Remove webinar announcement (#513)
Signed-off-by: Dan Luhring <dan+github@luhrings.com>
2021-12-01 19:05:14 +00:00
Alex Goodman
51e1b6307b
Update syft, jotframe, and validations pipeline (#512)
* update syft and jotframe

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

* update validations and release pipeline

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

* moved terminal package to golang.org/x/term

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

* update integration tests to account for package relationships

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

* add license exception for xz

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

* update Location and Coordinate references

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

* remove benchmark tests

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

* remove mac acceptance tests

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

* add syft-grype relationship notes in DEVELOPING.md

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-11-30 18:10:07 +00:00
Christopher Angelo Phillips
7e8ee40996
update releaser code to tag with correct v prefix (#508)
Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-11-22 16:15:43 -05:00
Alex Goodman
027e718b43
ignore partybus unsubscribe errors (#507)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-11-22 16:08:17 -05:00
Dan Luhring
70ec3bfb71
Support for private certificate authorities during DB curation (#494)
* Add injectable HTTP client to file getter

Signed-off-by: Dan Luhring <dan.luhring@anchore.com>

* WIP: Map config for custom CA certs

Signed-off-by: Dan Luhring <dan.luhring@anchore.com>

* update curator and add tests

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

* add TLS helper scripts

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

* remove grype-db local mod edit

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

* tidy go modules

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

* use ssl.context over deprecated fn

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

* disallow tls 1 and 1.1

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

* suppress non-archive sources for fetch-to-dir capability

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

* ensure DB load failure does not panic

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

* address review comments

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

Co-authored-by: Alex Goodman <alex.goodman@anchore.com>
2021-11-22 16:59:38 +00:00
Dan Luhring
1e35cbf20b
Announce meetup on 2021-12-01 (#505)
Signed-off-by: Dan Luhring <dan+github@luhrings.com>
2021-11-22 10:13:55 -05:00
Christopher Angelo Phillips
48c0b9b0e3
bump grype-db to latest commit (#501)
Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-11-16 13:07:56 -05:00
Swathi Gangisetty
5aa2b7bcac
Support vulnerability matching for Rocky Linux (#500)
- Update grype-db dependency for the distro-feed namespace mapping
- Add test to verify the above mapping

Signed-off-by: Swathi Gangisetty <swathi@anchore.com>
2021-11-15 16:14:24 -08:00
Christopher Angelo Phillips
a2762bbbf0
Bump syft version => v0.30.1 (#498)
* update syft version with correct arguments

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

* bump integration tests with new presenter format

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

* update integration tests to remove php-composer failure

Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-11-15 17:11:56 -05:00
Alex Goodman
fc8e3fbf49
bump chronicle to v0.3.0 (#497)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-11-13 18:56:47 -08:00
Dan Luhring
3797965d8a
Resolve vulnerabilities (#486)
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
2021-11-09 10:36:33 -05:00
Christopher Angelo Phillips
00aa7d4523
Add private registry authorization section to README (#488)
* update registry auth section for readme

Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-11-04 14:37:07 +00:00
Alex Goodman
3d7c38c670
bump syft to v0.29.0 (#487)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-11-02 14:42:51 -04:00
Alex Goodman
afc9de6058
Fix hang when running as a subprocess (#484)
* use named pipe bit on stdin as indicator for piped input

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

* ensure stdin is ignored when the CLI hints are present

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

* add CLI test to cover subprocess integration behavior

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

* added test case for java regression

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

* remove extra line in makefile

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-10-29 14:51:58 +00:00
Christopher Angelo Phillips
9349060765
Add QEMU to acceptance tests flow (#483)
Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-10-26 11:51:53 -04:00
Christopher Angelo Phillips
9d245e3d9d
update CI regression and add docker manifests (#479)
* see if QEMU offers support

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

* update QEMU support before cli verification

Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-10-26 10:04:38 -04:00
Alex Goodman
c9a1506ede
add arm64 support to install.sh (#480)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-10-25 22:09:49 +00:00
Christopher Angelo Phillips
d4bcf161b5
Add arm64 image support and Darwin M1 support to .goreleaser.yaml (#477)
Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-10-25 16:56:55 +00:00
Alex Goodman
9c00165306
pull in space suffix fix (#475)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-10-25 10:14:37 -04:00
Christopher Angelo Phillips
9cd917d29c
Add windows support (#464)
* update grype to compile windows

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

* update go mod with new stereoscope

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

* update build comments

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

* small build tags

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

* add goreleaser windows

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

* bump syft version

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

* update tests

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

* update test images to use newest pinned golang

Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-10-22 13:46:56 -04:00
Alex Goodman
25af951580
force exiting the etui upon worker error (#472)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-10-22 13:45:07 -04:00
Dan Luhring
e4bc82f305
Readme improvements (#469)
* Remove webinar announcement

Signed-off-by: Dan Luhring <dan.luhring@anchore.com>

* Document only-fixed feature

Signed-off-by: Dan Luhring <dan.luhring@anchore.com>

* Expand docs for Grype database

Signed-off-by: Dan Luhring <dan.luhring@anchore.com>

* List out allowed values for fix-state

Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
2021-10-22 12:07:06 +00:00
Alex Goodman
1e7218b01f
add chronicle as changelog generator (#468)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-10-21 16:30:24 -04:00
Christopher Angelo Phillips
441a643b15
362 add binary for linux arm64 to release process (#465)
* add binary for arm64 to release process

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

* update from darwin -> linux

Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-10-20 17:11:14 -04:00
Alex Goodman
f75889c694
Disable ETUI when piping input (#463)
* disable etui when piping input

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

* restore jotframe version

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

* remove test code

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

* raise error from IsPipedInput

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

* factor out verbosity check to function

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-10-20 12:40:57 -04:00
Dan Luhring
19a513a42a
Silence usage and errors on root command (#462)
* Silence usage and errors on root command

Signed-off-by: Dan Luhring <dan.luhring@anchore.com>

* show help when no args are given

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

* remove comments

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

* add cli test for help behavior

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

Co-authored-by: Alex Goodman <alex.goodman@anchore.com>
2021-10-20 09:50:59 -04:00
Christopher Angelo Phillips
637a061532
Add APK version constraint parsing (#455)
Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-10-18 17:27:02 +00:00
Alex Goodman
dc1f682e4b
remove unnecessary codeql checkout from second parent commit (#458)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-10-18 13:18:56 -04:00
Christopher Angelo Phillips
4682dcc2f4
add presenter tests for ignore functionality (#459)
Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-10-18 16:04:27 +00:00
Christopher Angelo Phillips
30340dbdf6
175 patch - allow ignore not fixed to work independently of configured rules (#454)
* add ignore rules that allow different states of fixes to be ignored

Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-10-18 09:46:12 -04:00
Dan Luhring
e544dff368
Announce upcoming webinar (#457)
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
2021-10-15 16:21:26 +00:00
Dan Luhring
438c4f899f
Add Grype logo (#451)
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
2021-10-11 21:15:19 +00:00
Christopher Angelo Phillips
bed8bab572
(#175) add only fixed option (#448)
Add --only-fixed option to root command. Grype will now exit with status code 0 when passing this option if vulnerabilities are detected but have no upstream resolution.

* update config with new option

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

* add flag into root cmd

Signed-off-by: Christopher Angelo Phillips <christopher.phillips@anchore.com>
2021-10-11 11:30:01 -04:00
Sam Dacanay
2dd41311cb
Retrieve target from directory sbom types in addition to image types (#440)
* Retrieve target from directory sbom types in addition to image types

Signed-off-by: Samuel Dacanay <sam.dacanay@anchore.com>

* add dir sbom ingest test

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

Co-authored-by: Alex Goodman <alex.goodman@anchore.com>
2021-10-06 13:59:36 +00:00
Alex Goodman
6fe9fc2c8c
update linter + fix whitespace (#443)
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-10-06 09:49:42 -04:00
Alex Goodman
cd3b414e59
Add option to output vulnerability report to a file (#442)
* add --file CLI option

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

* tidy go sum

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2021-10-05 15:57:36 -04:00
Dan Luhring
84189278a3
Improve documentation (#441)
* Make installation methods more obvious

Signed-off-by: Dan Luhring <dan.luhring@anchore.com>

* Add badge for joining Slack

Signed-off-by: Dan Luhring <dan.luhring@anchore.com>

* Document requirement for signed commits

Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
2021-10-04 09:29:41 -04:00