forked from daos-stack/daos
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Sre 2505 trivy #61
Merged
Merged
Sre 2505 trivy #61
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
Do not start Trivy scan if changes not related to dependencies. Run Trivy on daily bases. Add badge to follow cycle Trivy scans Enable scans on request Doc-only: true Required-githooks: true Signed-off-by: Tomasz Gromadzki <[email protected]>
Doc-only: true Required-githooks: true Signed-off-by: Tomasz Gromadzki <[email protected]>
Doc-only: true Required-githooks: true Signed-off-by: Tomasz Gromadzki <[email protected]>
Doc-only: true Required-githooks: true Signed-off-by: Tomasz Gromadzki <[email protected]>
https://aquasecurity.github.io/trivy/v0.56/docs/coverage/language/#supported-languages provides the full list of scanned file in the 'filesystem' scan. Keep the same condition for PR and merge trigger. Doc-only: true Required-githooks: true Signed-off-by: Tomasz Gromadzki <[email protected]>
Doc-only: true Required-githooks: true Signed-off-by: Tomasz Gromadzki <[email protected]>
Required-githooks: true Signed-off-by: Tomasz Gromadzki <[email protected]>
Doc-only: true Required-githooks: true Signed-off-by: Tomasz Gromadzki <[email protected]>
) In reintegrate case, ever hit case that the IC_CONT_CAPA cache is valid locally but cont open handle invalid (not in dt_cont_hdl_hash). For this case invalidate local IV cache first and retry again, to avoid in-flight UPDATE's failure because obj_ioc_init() -> ds_cont_find_hdl() -> cont_iv_hdl_fetch() failure - DBUG src/engine/server_iv.c:409 ivc_on_fetch() FETCH: Key [1:7] entry 0x7fb31063b550 valid yes DBUG src/engine/server_iv.c:1042 iv_op_internal() class_id 7 opc 1 rc 0 ERR src/object/srv_obj.c:2174 obj_ioc_begin_lite() Failed to initialize object I/O context.: DER_NO_HDL(-1002): 'Invalid handle' Signed-off-by: Xuezhao Liu <[email protected]>
- Use GHA cache to avoid Trivy scan failure Trivy CVEs database downloads fails often. The most promissing solution is to use cache and download the database once a day. CVEs database is cached during daily build (`schedule`). Cache is not used if `master` branch cache is not available. https://github.com/aquasecurity/trivy-action?tab=readme-ov-file#updating-caches-in-the-default-branch - Avoid Trivy scanners re-initialization https://github.com/aquasecurity/trivy-action?tab=readme-ov-file#skipping-setup-when-calling-trivy-action-multiple-times The latest available version of `aquasecurity/trivy-action` is used to be able to use `skip-setup-trivy` parameter. Doc-only: true Required-githooks: true Signed-off-by: Tomasz Gromadzki <[email protected]>
Doc-only: true Required-githooks: true Signed-off-by: Tomasz Gromadzki <[email protected]>
- Use GHA cache to avoid Trivy scan failure Trivy CVEs database downloads fails often. The most promissing solution is to use cache and download the database once a day. CVEs database is cached during daily build (`schedule`). Cache is not used if `master` branch cache is not available. https://github.com/aquasecurity/trivy-action?tab=readme-ov-file#updating-caches-in-the-default-branch - Avoid Trivy scanners re-initialization https://github.com/aquasecurity/trivy-action?tab=readme-ov-file#skipping-setup-when-calling-trivy-action-multiple-times The latest available version of `aquasecurity/trivy-action` is used to be able to use `skip-setup-trivy` parameter. Doc-only: true Required-githooks: true Signed-off-by: Tomasz Gromadzki <[email protected]>
Doc-only: true Required-githooks: true Signed-off-by: Tomasz Gromadzki <[email protected]>
Use external caching mechanism to ensure PR scan not failing. Signed-off-by: Tomasz Gromadzki <[email protected]> Signed-off-by: Tomasz Gromadzki <[email protected]>
Required-githooks: true Signed-off-by: Tomasz Gromadzki <[email protected]>
Required-githooks: true Signed-off-by: Tomasz Gromadzki <[email protected]>
Required-githooks: true Signed-off-by: Tomasz Gromadzki <[email protected]>
grom72
force-pushed
the
SRE-2505-trivy
branch
from
October 30, 2024 19:23
48dce61
to
427fe59
Compare
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.
Before requesting gatekeeper:
Features:
(orTest-tag*
) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.Gatekeeper: