-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: use trivy as a binary instead of a library #786
Merged
pmengelbert
merged 21 commits into
eraser-dev:main
from
pmengelbert:feat/trivy_as_binary/new_scanner
Jul 6, 2023
Merged
feat: use trivy as a binary instead of a library #786
pmengelbert
merged 21 commits into
eraser-dev:main
from
pmengelbert:feat/trivy_as_binary/new_scanner
Jul 6, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## main #786 +/- ##
==========================================
- Coverage 15.80% 14.83% -0.97%
==========================================
Files 13 13
Lines 1607 1496 -111
==========================================
- Hits 254 222 -32
+ Misses 1325 1253 -72
+ Partials 28 21 -7
Flags with carried forward coverage won't be shown. Click here to find out more.
|
pmengelbert
force-pushed
the
feat/trivy_as_binary/new_scanner
branch
from
July 5, 2023 19:50
8b8bc82
to
950b2dd
Compare
pmengelbert
changed the title
feat: testing ci
feat: use trivy as a binary instead of a library
Jul 5, 2023
sozercan
reviewed
Jul 5, 2023
sozercan
reviewed
Jul 5, 2023
sozercan
reviewed
Jul 5, 2023
Installs the published trivy binary to the trivy-scanner image. Make variables TRIVY_BINARY_REPO TRIVY_BINARY_TAG, and TRIVY_BINARY_IMG have been added to provide control over the versioning. This is a beginning of a change intended to reduce maintentance and to resolve resource issues that have arisen. Instead of using trivy as a library (which has a constantly-shifting API), we will use the published binary. Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
pmengelbert
force-pushed
the
feat/trivy_as_binary/new_scanner
branch
from
July 6, 2023 13:04
948a6fd
to
e819a4b
Compare
For testing Config.cliArgs(...) Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
Signed-off-by: Peter Engelbert <pmengelbert@gmail.com>
sozercan
approved these changes
Jul 6, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! LGTM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
resolves #656
This PR will likely improve memory usage by the scanner.