Commit graph

1110 commits

Author SHA1 Message Date
Alfredo Deza
145bb95a2d lib: use scope instead of requiring images
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-15 07:53:27 -04:00
Alfredo Deza
d22c1d0838 distro: identify uses the scope resolvers now, not images
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-15 07:53:27 -04:00
Alfredo Deza
923d220a90 controller: use new scope.Resolver interface
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-15 07:53:27 -04:00
Alfredo Deza
6cbf6d3409 cmd: do not pass img around, use scope
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-15 07:53:27 -04:00
Alex Goodman
66a16a67fd
Add support for detecting nested java archives (#77)
* with sb build app

* test nested jar support

* pin jdk version during parse test (but dont compare version)
2020-07-15 07:42:35 -04:00
Alex Goodman
e8d11eec69
add license validation (#80) 2020-07-13 13:07:20 -04:00
Alex Goodman
61f51d80bb
Add comparative analysis with anchore-engine (#78)
* add comparative analysis

* remove extra comma from compare script tuple

Co-authored-by: Alfredo Deza <adeza@anchore.com>

Co-authored-by: Alfredo Deza <adeza@anchore.com>
2020-07-13 12:12:00 -04:00
Alex Goodman
3f090f9647
fix java cache key for CI; fix circle docker api version (#79) 2020-07-13 12:11:11 -04:00
Alex Goodman
502e2afd06
fix linting issue 2020-07-10 07:45:13 -04:00
Alex Goodman
15ff94b56b
tweak java manifest version processing 2020-07-10 07:41:13 -04:00
Alex Goodman
ef8c215772
Merge pull request #74 from anchore/add-java-cataloger
Adds java cataloger
2020-07-09 17:05:29 -04:00
Alex Goodman
4c7d9ccef7
simplify unzip; update java error statements 2020-07-09 11:53:52 -04:00
Alex Goodman
0f8dcf3f17
Update imgbom/cataloger/java/pom_properties.go
Co-authored-by: Alfredo Deza <adeza@anchore.com>
2020-07-09 11:38:02 -04:00
Alex Goodman
c9bfc0aecd
Update imgbom/cataloger/java/pom_properties.go
Co-authored-by: Alfredo Deza <adeza@anchore.com>
2020-07-09 11:37:45 -04:00
Alex Goodman
40f8e3a7de
Update imgbom/cataloger/java/java_manifest.go
Co-authored-by: Alfredo Deza <adeza@anchore.com>
2020-07-09 11:31:23 -04:00
Alex Goodman
1f89d26902
reduce java packages to java-archive and jenkins-plugin 2020-07-09 10:46:28 -04:00
Alex Goodman
e55db9247e
add java cataloger 2020-07-08 16:16:01 -04:00
Alfredo Deza
1d711ee06f
Merge pull request #71 from anchore/protocol-cleanup
cmd: replace Printf with a logging statement
2020-07-07 10:42:26 -04:00
Alfredo Deza
74f339e043 cmd: replace Printf with a logging statement
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-07 10:40:55 -04:00
Alex Goodman
e040fc8930
Merge pull request #72 from anchore/add-rpm-cataloger
Add RPM DB support
2020-07-07 09:06:54 -04:00
Alex Goodman
1896831c39
add rpmdb support; enhance integration tests 2020-07-06 12:55:11 -04:00
Alex Goodman
7cd16d05b8
Merge pull request #70 from anchore/add-coverage
Add test coverage (+ makefile improvements)
2020-07-06 12:45:52 -04:00
Alex Goodman
d59a19697d
add coverage + makefile improvements 2020-07-06 07:25:18 -04:00
Alex Goodman
027f71de45
fix env config reads for nested config values 2020-07-03 12:00:46 -04:00
Alfredo Deza
fe338760b0
Merge pull request #68 from anchore/issue-31-1
Add support for file-based contents
2020-07-02 17:29:45 -04:00
Alfredo Deza
9baae90c0b integration: add tests for dir-based presenters
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 16:09:55 -04:00
Alfredo Deza
3548c7b132 tests for scope.go
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 16:09:55 -04:00
Alfredo Deza
3eedb86a1f tests for protocol.go
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 16:09:55 -04:00
Alfredo Deza
c35108b00d tests: reorganize text img files to match new layout
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 16:09:55 -04:00
Alfredo Deza
f49ca8107a tests: add verification for dirs and imgs
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 16:09:55 -04:00
Alfredo Deza
293b7b6ff9 tests: update integration tests to use new cataloger
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 16:09:55 -04:00
Alfredo Deza
96d86fa214 tests: move existing json tests to json/imgs
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 16:09:55 -04:00
Alfredo Deza
7544330bc2 json img presenter needs to degrade nicely when file metadata is not present
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 15:12:48 -04:00
Alfredo Deza
feef7e28dc cmd: add note about panic when img is nil
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 15:12:48 -04:00
Alfredo Deza
ec52e91301 scope: create interface for content and file resolvers
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 15:12:48 -04:00
Alfredo Deza
b2d7bd3b1a scope: add directory-based scoping
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 15:12:48 -04:00
Alfredo Deza
e38e3e9ff4 create text-based presenters for dirs and imgs
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 15:12:48 -04:00
Alfredo Deza
268cfef0ee re-organize json-based presenters for dirs and imgs
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 15:12:48 -04:00
Alfredo Deza
312c8acfbe presenter can pick text-dir, text-img, json-text, or json-img for reporting
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 15:12:48 -04:00
Alfredo Deza
69a0376f99 distro: add note to replace with MultipleFileContents in the future
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 15:12:48 -04:00
Alfredo Deza
507a6b69cb catalog controller uses scope to determine file resolvers
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 15:12:48 -04:00
Alfredo Deza
faf21a67a6 lib: return a protocol-based scope (dir or img)
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 15:12:48 -04:00
Alfredo Deza
678a2c1dcb create a protocol-parsing package to distinguish dir,docker, etc...
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-02 13:04:19 -04:00
Alfredo Deza
4d31655908 allow root command to catalog a directory
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-07-01 07:35:01 -04:00
Alex Goodman
466169e8d7
Merge pull request #65 from anchore/add-an-event-bus
Add and use event bus for UI progress
2020-06-25 11:04:45 -04:00
Alex Goodman
926b5f2a50
add and use event bus for UI progress 2020-06-25 10:39:11 -04:00
Alex Goodman
2e9e969c5f
Merge pull request #66 from anchore/add-license
Add apache v2 license
2020-06-24 14:51:51 -04:00
Alex Goodman
1569a85820
add apache v2 license 2020-06-24 14:37:00 -04:00
Alfredo Deza
d2e6229b2e
Merge pull request #64 from anchore/issue-36
Create a text presenter, default to it
2020-06-22 14:05:06 -04:00
Alfredo Deza
0a1f99503f cli: default to the new text presenter
Signed-off-by: Alfredo Deza <adeza@anchore.com>
2020-06-22 11:09:00 -04:00