Dan Luhring
2e97387721
Set prerelease to auto ( #169 )
...
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
2020-09-29 16:33:33 -04:00
Dan Luhring
04f88a80c6
Bump go.mod item versions ( #173 )
...
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
2020-09-29 16:24:12 -04:00
Alex Goodman
98a17355c5
remove constraint panics & invalid test assertiona (handle pre-release TODOs) ( #171 )
...
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-09-29 10:20:51 -04:00
Alex Goodman
65ab6dacdb
Support file/dir tilde expansion + APK cataloger xattr fix ( #170 )
...
* pull in upstream tilde expansion
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
* pull in apk cataloger xattr checksum fix
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-09-28 17:37:39 -04:00
Alex Goodman
844cef986b
default to draft releases
...
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-09-25 23:39:12 -04:00
Alex Goodman
3c35e562bf
exclude size labels from release changelog
...
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-09-25 23:30:15 -04:00
Alex Goodman
75e3638468
add changelog generation into the release process ( #167 )
...
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-09-25 16:59:00 -04:00
Alex Goodman
63a6dd33df
always return a cleanup function from scope ( #166 )
...
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-09-25 16:29:15 -04:00
Dan Luhring
f13b9a76ed
Use latest versions of anchore repos ( #164 )
...
Signed-off-by: Dan Luhring <dan.luhring@anchore.com>
2020-09-25 15:00:15 -04:00
Alex Goodman
326afa3c41
Add OCI support + use URI schemes ( #160 )
...
* add oci support + update image schemes
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
* update to oci-dir
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
* bump upstream stereoscope, testutils, and syft pins
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
* fix malformed go.sum
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
* pull in upstream syft json presenter updates
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-09-25 14:18:03 -04:00
Alex Goodman
9f6301bbc2
Change root of JSON presenter to a mapping (instead of a sequence) ( #163 )
...
* update root of json presenter document
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
* change vulnerabilities to matches in json output
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-09-25 14:06:28 -04:00
Alex Goodman
b2715ffdba
Update high level docs ( #162 )
...
* move dev section to separate doc; generally update readme
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
* remove line breaks from docs
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-09-25 14:06:10 -04:00
Alex Goodman
ed9f9bcb2b
remove duplicate rows from the summary table ( #161 )
...
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-09-25 10:34:54 -04:00
Alfredo Deza
ec493d5d0b
Merge pull request #159 from anchore/update-testutils
...
update go.mod and go.sum
2020-09-24 08:49:59 -04:00
Alfredo Deza
578afab216
update go.mod and go.sum
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-09-23 16:58:14 -04:00
Alex Goodman
c73a33700a
fix replacement of results with matches ( #158 )
...
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-09-22 16:10:23 -04:00
Alex Goodman
f0f8f4bf02
add --fail-on threshold support ( #156 )
...
* add --fail-on threshold support
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
* rename fail-on support functions and variables
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
* remove UK spelling of canceled
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-09-21 17:12:21 -04:00
Alfredo Deza
0397206376
Merge pull request #154 from anchore/issue-148
...
Add CycloneDX schema validation
2020-09-21 16:07:44 -04:00
Alfredo Deza
ca19b08850
presenter: cyclonedx shouldn't eat up errors
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-09-21 15:35:43 -04:00
Alfredo Deza
7b71401c26
cyclonedx tests: update BD name to use grype instead of syft
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-09-21 15:35:43 -04:00
Alfredo Deza
2d448390d6
presenter: cyclonedx document updates to pass schema validation
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-09-21 15:35:43 -04:00
Alfredo Deza
4f78b57a63
presenter: cyclonedx vulnerability schema fixes
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-09-21 14:53:23 -04:00
Alfredo Deza
2b8dfc2d75
temporary bump of go deps for testing
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-09-21 11:17:51 -04:00
Alfredo Deza
0fb5080735
presenter: add new golden files for cyclonedx tests
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-09-21 11:17:51 -04:00
Alfredo Deza
46f39486ab
presenter: remove unneeded golden files
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-09-21 11:17:51 -04:00
Alfredo Deza
3de06ce3f6
presenter: join dir+img presesnter tests for cyclonedx
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-09-21 11:17:51 -04:00
Alfredo Deza
298a8019fc
tests: update CycloneDX presenters with new namespaces
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-09-21 11:17:51 -04:00
Alfredo Deza
80d494b79c
presenter: add xmlns for bd and v namespaces in cyclonedx output
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-09-21 11:17:51 -04:00
Alfredo Deza
3a5721801e
ci: hook the cyclonedx validation into CircleCI
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-09-21 11:17:51 -04:00
Alfredo Deza
57d777cf04
tests: add cyclonedx schema check
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-09-21 11:17:51 -04:00
Sam Dacanay
2c1ddbecc4
Merge pull request #152 from anchore/fix-json-keys
...
Change kebab case to camelCase
2020-09-21 08:17:32 -07:00
Samuel Dacanay
cb437b6721
Change kebab case to camelCase, use updated syft version
...
Signed-off-by: Samuel Dacanay <sam.dacanay@anchore.com>
Ignore packageurl-go which is a dependency from syft, and has a weird license format
Signed-off-by: Samuel Dacanay <sam.dacanay@anchore.com>
2020-09-21 08:12:31 -07:00
Alex Goodman
ca8ac613e0
Rename Result object to Matches ( #153 )
...
* rename result to matches
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
* renames NewResult to NewMatches
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-09-17 06:02:17 -04:00
Sam Dacanay
ad7d9d5fdb
Merge pull request #151 from anchore/fix-version-json-output-casing
...
Fix json keys to be camel case instead of kebab
2020-09-14 13:51:39 -07:00
Samuel Dacanay
9fa5064107
Fix json keys to be camel case instead of kebab
...
Signed-off-by: Samuel Dacanay <sam.dacanay@anchore.com>
2020-09-14 13:47:30 -07:00
Sam Dacanay
293368e25e
Shell completion via Cobra utility ( #149 )
...
* Add completion script, ValidArgsFunction to root command to list docker images using docker go sdk, and update README
Signed-off-by: Samuel Dacanay <sam.dacanay@anchore.com>
Remove support for zsh and powershell completion, as it doesnt work out of the box, and currently dont have a way to test powershell. Reported an issue with Cobra ZSH completion script generation as there are 2 bugs in it AFIACT
Signed-off-by: Samuel Dacanay <sam.dacanay@anchore.com>
* add zsh with cobra master branch
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
Co-authored-by: Alex Goodman <alex.goodman@anchore.com>
2020-09-14 09:06:29 -07:00
Alex Goodman
0f970816a2
add positional argument validation ( #150 )
...
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-09-12 20:04:39 -04:00
Alex Goodman
1338850a8e
Add fixed-in-version to the presenters ( #147 )
...
* add fix-in-version to the json and table presenters
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
* incorporate grype-db fixed-in updates
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-09-09 12:55:22 -04:00
Alex Goodman
bd50ffc585
Change search key json output to a map ( #146 )
...
* change search key json output to a map
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
* add documentation around the match object
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
2020-09-08 11:23:29 -04:00
Alfredo Deza
c0efed5027
Merge pull request #143 from anchore/issue-39
...
cyclonedx presenter
2020-08-31 15:42:55 -04:00
Alfredo Deza
c7689556be
presenter: cyclonedx tests
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-08-31 15:40:27 -04:00
Alfredo Deza
8fc7efd464
result: add a helper to get packages by ID
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-08-31 15:24:09 -04:00
Alfredo Deza
444b191404
presenter: set the options to hook CycloneDX output
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-08-31 15:24:09 -04:00
Alfredo Deza
48c3c2ab35
presenter: add a cyclonedx presenter
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-08-31 15:24:09 -04:00
Alfredo Deza
8e8ad489f9
dependencies: update to latest syft and include uuid
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-08-28 13:38:56 -04:00
Alfredo Deza
b77e023be8
Merge pull request #137 from anchore/issue-94
...
Prevent duplicates, expand on matching information
2020-08-25 13:58:34 -04:00
Alfredo Deza
d2949a2ddd
matcher: add duplicate to demonstrate they don't show up
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-08-25 13:26:38 -04:00
Alfredo Deza
89f8ac49b9
test: update integration to match new SearchMatches
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-08-25 11:53:23 -04:00
Alfredo Deza
46f614d912
tests: json presenter output updated
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-08-25 11:53:23 -04:00
Alfredo Deza
5428cc25af
presenter: json to use a string for the search key, not a map
...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-08-25 11:53:23 -04:00