Skip to content
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

Add operations for container scan to status.json #960

Merged
merged 3 commits into from
Oct 5, 2023

Conversation

niravrsynopsys
Copy link
Contributor

@niravrsynopsys niravrsynopsys commented Oct 3, 2023

Description

Add operations for Container Scan to the "operations" section in the status.json. Addresses only one part of IDETECT-4086 where container scan operations were not being reported to status.json.

The main thing to note in this PR is that to report an operation in status.json, the container scan operations have been wrapped using the below 2 wrapper methods:

auditLog.namedInternal(String operationName, OperationWrapper.OperationFunction supplier)
The namedInternal wrapper will report an operation to status.json only if there was a failure during the supplier's execution.

auditLog.namedPublic(String operationName, OperationWrapper.OperationFunction supplier)
The namedPublic wrapper will always report an operation to status.json - irrespective of execution status.

JIRA

IDETECT-4086

@niravrsynopsys niravrsynopsys changed the title Dev/niravr/idetect 4086 Draft: Add operations and code location name for container scan to status.json Oct 3, 2023
@niravrsynopsys niravrsynopsys marked this pull request as draft October 3, 2023 18:50
@niravrsynopsys niravrsynopsys changed the title Draft: Add operations and code location name for container scan to status.json Add operations for container scan to status.json Oct 4, 2023
@niravrsynopsys niravrsynopsys self-assigned this Oct 4, 2023
@niravrsynopsys niravrsynopsys marked this pull request as ready for review October 4, 2023 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants