checkov-action icon indicating copy to clipboard operation
checkov-action copied to clipboard

Add support for saving the output into a file and upload to github artifactory

Open nitishkumar1991 opened this issue 3 years ago • 3 comments

Needs the support to save scan results to a file corresponding to output format such as cli to txt, or github_failed_only to txt or junitxml to a xml file and upload to artifactory or repo itself.

nitishkumar1991 avatar Aug 11 '21 05:08 nitishkumar1991

I have this use case as well, the output_format option allows us to set JUNIT but there is now way to write the XML to a file so that we an then use another action (such as https://github.com/marketplace/actions/publish-unit-test-results ) to publish the test results in the Workflow summary.

nmarchini avatar Oct 20 '21 20:10 nmarchini

Does it not put the results into $CHECKOV_RESULTS which you can then write to disk echo "$CHECKOV_RESULTS" > results.xml?

toast-gear avatar Jan 19 '22 11:01 toast-gear

Is this a duplicate of #30 ?

mikelax avatar Oct 03 '22 16:10 mikelax

this is possible via output_file_path:

gruebel avatar Mar 20 '23 21:03 gruebel