Commit graph

700 commits

Author SHA1 Message Date
anchore-actions-token-generator[bot]
a027c74c2c
Update grype bootstrap tools to latest versions. (#903)
Co-authored-by: westonsteimel <westonsteimel@users.noreply.github.com>
2022-08-29 10:30:39 -04:00
anchore-actions-token-generator[bot]
198326745b
Update grype bootstrap tools to latest versions. (#896)
Co-authored-by: westonsteimel <westonsteimel@users.noreply.github.com>
2022-08-25 09:14:46 -04:00
Keith Zantow
64cbb68d9d
Add blurbs about building and running from source (#893) 2022-08-24 15:30:21 -04:00
Alex Goodman
ea4b250055
Fix docker build typo (#891) 2022-08-24 17:07:48 +00:00
Weston Steimel
e9df59b4b1
disable CPE match filtering based on target software component for java packages (#889)
Java packages are known to embed other ecosystem packages within them, so we don't want to currently make this assumption for any java language type packages

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
2022-08-24 15:20:45 +00:00
anchore-actions-token-generator[bot]
9d3e40079b
Update grype bootstrap tools to latest versions. (#886)
* Update grype bootstrap tools to latest versions.

Signed-off-by: GitHub <noreply@github.com>
Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
Co-authored-by: Weston Steimel <weston.steimel@anchore.com>
2022-08-23 20:09:56 +00:00
Weston Steimel
0de5dfdd86
fix getting latest gosimports version (#885)
Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
2022-08-22 18:27:50 +00:00
Weston Steimel
d463d74178
workflow to create automated PRs to update bootstrap tools (#883)
Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
2022-08-22 17:59:54 +00:00
skuethe
ae37eb4a05
Add s390x build support (#720)
Co-authored-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-08-18 16:28:10 -04:00
cpendery
d67b3e64aa
fix: only show distro warning if distro packages exist (#875) 2022-08-18 11:55:35 -04:00
anchore-actions-token-generator[bot]
08b4ef493b
Update Syft to v0.54.0 (#881)
Signed-off-by: GitHub <noreply@github.com>

Signed-off-by: GitHub <noreply@github.com>
Co-authored-by: wagoodman <wagoodman@users.noreply.github.com>
2022-08-17 19:36:54 +00:00
Brock R
174f61ec23
Update README.md (#871) 2022-08-16 19:45:50 +00:00
Neil Levine
f12bb67720
Update README.md (#868) 2022-08-04 21:08:16 +00:00
Michael de Senna
c755c7304f
test: rm mustConst since unused (#860) 2022-08-04 09:38:54 -04:00
anchore-actions-token-generator[bot]
262630e01e
Update Syft to v0.53.4 (#856) 2022-08-04 09:37:48 -04:00
Michael de Senna
80f9e04289
feat: enrich db check cmd feedback (#853)
Co-authored-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-08-03 16:34:27 -04:00
Christopher Angelo Phillips
ad9f0ac76e
update syft version location for Makefile (#865) 2022-08-03 12:54:29 -04:00
Christopher Angelo Phillips
8fe761b41f
remove env variable dependencies and keychain from signing script (#864) 2022-08-03 14:55:15 +00:00
Christopher Angelo Phillips
d264309035
macos-latest for signing (#863) 2022-08-03 14:09:44 +00:00
Christopher Angelo Phillips
6810fa5809
move docker release into separate release workflow (#862) 2022-08-03 13:10:40 +00:00
Christopher Angelo Phillips
5cb0bf742b
revert to old docker action (#861) 2022-08-03 11:56:22 +00:00
Christopher Angelo Phillips
49eb05656e
additional readOptions added per 855 (#857) 2022-08-02 20:49:37 +00:00
Keith Zantow
5d4f1ffdea
Ensure database access is readonly (#854) 2022-08-02 14:41:22 -04:00
Christopher Angelo Phillips
ad55091216
push older version for mac runner stability (#852) 2022-08-01 10:32:06 -04:00
Weston Steimel
147cd7938f
bump bouncer to v0.4.0 (#851)
Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
2022-07-29 16:56:13 +01:00
cpendery
c20924fa55
feat: simple input case to request vulnerability data via purl (#795) 2022-07-28 14:56:04 -04:00
Christopher Angelo Phillips
74fd591caf
update golanci-lint, goreleaser, cosign (#850) 2022-07-28 14:55:14 -04:00
cpendery
d5ff4ef9dc
fix: db diff default has flipped base/target url (#845) 2022-07-25 17:13:24 -04:00
Christopher Angelo Phillips
a6ec8f11be
add env variables and keychain for GHCR publish (#843) 2022-07-25 15:26:14 +00:00
Christopher Angelo Phillips
991d16879a
update grype to use syft v0.52.0 (#838) 2022-07-22 16:12:18 +00:00
Christopher Angelo Phillips
2c7d4e66d4
add debug distroless image to published images (#835) 2022-07-20 16:52:05 -04:00
Christopher Angelo Phillips
3fae30d005
add new line for help block (#834) 2022-07-19 12:26:21 -04:00
Zac Medico
30943e032b
add Gentoo matching support (#813)
Co-authored-by: Christopher Phillips <christopher.phillips@anchore.com>
2022-07-19 09:37:21 -04:00
cpendery
951bc359bb
feat: add filtering support using target software field in cpe (#810) 2022-07-18 15:28:19 -04:00
Christopher Angelo Phillips
addbd07b4f
Add new matcher files for golang => remove main module FP matches (#829) 2022-07-18 13:14:03 -04:00
Josh Bressers
8ce541ee1c
Fix a cyclonedxvex typo and fix the schema document from (#830)
https://github.com/CycloneDX/specification/issues/147

Signed-off-by: Josh Bressers <josh@bress.net>
2022-07-17 11:34:41 -04:00
cpendery
51617f8aa5
feat: add --only-notfixed flag (#828) 2022-07-15 10:01:05 -04:00
artsv79
2233736e98
add DBCloser. Clients can aviod db connection leak if vulnerability db is loaded many times (#825) 2022-07-12 09:54:42 -04:00
Christopher Angelo Phillips
cb6bddfeeb
bump syft version to v0.51.0 (#822) 2022-07-11 15:15:12 -04:00
cpendery
e2fff6c22f
feat: implement grype db diff command (#812)
Co-authored-by: Alex Goodman <alex.goodman@anchore.com>
Co-authored-by: Weston Steimel <weston.steimel@anchore.com>
Co-authored-by: Christopher Angelo Phillips <32073428+spiffcs@users.noreply.github.com>
2022-07-11 09:46:59 -04:00
Weston Steimel
17a440033a
fix typo in log message (#819) 2022-07-06 15:56:44 +00:00
Christopher Angelo Phillips
0e0a9d9e7a
update syft to v0.50.0 (#818) 2022-07-06 14:48:21 +00:00
Weston Steimel
44032c514c
Finalize v4 Grype schema (#803)
* initial v4 schema setup

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* update v3 => v4 for unit tests

-- did NOT update
    - grype/db/v3/*

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

* use nullable string in sqlite so null values get represented correctly

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* add missing unit test case for dotnet

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* Add db writer function for calling sqlite vacuum

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* adding normalization of package names at database adapter layer

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* refactor namespaces for v4

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* update v4 stuff to use sqlite fork

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* Namespace should satisfy Stringer interface

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* normalize CPEs before comparison

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* vulnerability exclusion => vulnerability match exclusion

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* updates to vulnerability match exclusion models

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* add initial vulnerability match exclusion store unit tests

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* make vuln match exclusion constraints nullable

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* move vuln match namespace into constraints object and refactor

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* check db match constraints to ensure there aren't any unknown fields and add json hints

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* ensure we only keep compatible match exclusion constraints

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* use omitempty on all match exclusion structs

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* remove db v4 schema resolver and namespace types

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

* rename Vacuum to Close

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

* lint fixes + remove panic on vuln provider creation

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

* WIP match exclusions

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* build list of ignore rules from v4 db records

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* quick attempt at a new uber object

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* just pass around the full object for now to quickly get to a usable state

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* fix panic when no vuln db loaded

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* use interfaces for db.store function signatures

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

* Flatten the match exclusion constraint model to simplify logic

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* updating some tests

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* fix panic when no db update possible

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* more tests

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* WIP fixing match exclusion constraint usability and json mapping logic

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* add v4 db diff logic (excluding vulnerability_match_exclusion data for now)

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* lint fix

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* update integration tests

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* nvd -> nvd:cpe namespace updates

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* ensure test store uses v4 normalized names

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* set the grype db update url to staging for v4

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* prevent more segfaults on database open

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* add continue when unable to load ignore rules

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* remove db.Status from the Store object

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* fix compare_sbom_input_vs_lib_test.go

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

* remove staging endpoint now that v4 is published

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>

Co-authored-by: Christopher Phillips <christopher.phillips@anchore.com>
Co-authored-by: Alex Goodman <alex.goodman@anchore.com>
2022-07-05 19:03:16 +01:00
cpendery
75a7e54f52
docs: update to include rust (#814) 2022-06-29 15:45:21 -04:00
cpendery
90df6815e6
feat: add diffing 2 databases to v3 store functionality (#789) 2022-06-28 14:22:37 -04:00
cpendery
8ab0159f9f
fix: add support for partybus ui on grype db update cmd (#806) 2022-06-28 14:21:33 -04:00
Adin Ermie
b3a078aa02
Added Docker example to Readme (#769) 2022-06-27 16:59:51 -04:00
cpendery
e17bb9bd73
fix: add vex json & xml to listed formats (#802) 2022-06-27 11:26:59 -04:00
cpendery
64277bf6f4
docs: update php listing to be more clear that the .json file isn't indexed (#808) 2022-06-27 10:26:49 -04:00
Christopher Angelo Phillips
82c0146b0a
update syft => v0.49.0 (#804) 2022-06-24 18:30:36 +00:00