-
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
feat: Enhance action.yaml with additional outputs for downstream integration #36
base: main
Are you sure you want to change the base?
Conversation
8716afd
to
2eacad8
Compare
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.
Just the removal of the comment logic
2eacad8
to
fe28659
Compare
e720887
to
392484f
Compare
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.
Also, can we add a example
dir which outlines an example of using this action in a consuming repo ? We can add two examples - one with NR reporting and the other without (basic scanning of container image using lacework)
6e0e637
to
b4fd165
Compare
- adds test workflow for scanning containers - formats scan results for New Relic integration - includes debug mode and configurable inputs - preserves results as workflow artifacts feat: update action.yaml for additional outputs (image-name, image-tag) for downstream processing chore: remove scan-output-test.yaml from branch fix: resolve set-output and input issues in container-scan action fix: resolving errors fix: align outputs and cleanup references in container scan action fix: add required inputs for container scan Added input definitions for: - lw-account-name - lw-access-token - github-token - build-args Pass build-args to docker-build action feat(action): add JSON output format support - Add output-format parameter to control scan results format - Pass format parameter to Lacework scanner - Default to JSON for better parsing fix(scan): disable verbose output for JSON format - Add scanner flag to output clean JSON - Enable proper parsing of scan results fix(scan): use correct JSON output flag for Lacework scanner - Add -j=true flag to force JSON output format - Remove output-format parameter fix(scan): use correct parameter name for JSON output - Replace SCANNER_FLAGS with ADDITIONAL_PARAMETERS - Maintain -j=true flag for JSON format feat: add optional skip-checkout input to container-scan action fix(ci): restore PR commenting and result formatting in security scan action - Added steps to check and delete previous PR comments to ensure clean re-runs. - Restored PR commenting functionality with formatted Lacework scan results. - Improved validation of to prevent runtime errors. - Ensured Docker images are properly cleaned up after the scan process. This change addresses feedback regarding missing PR comments and maintains the expected behavior of the workflow. fix(ci): restored ADDITIONAL_PARAMETERS to enable JSON output. fix: add missing shell property to container scan action fix: add winterjung/comment@v1, type: delete feat(security): enable table output for container scan results - Add RESULTS_IN_GITHUB_SUMMARY and PRETTY_OUTPUT flags to Lacework scanner config - Maintain JSON output for New Relic metrics integration - Improve scan result readability in PR comments The scanner will now display results in both table format for GitHub and JSON for metrics reporting. feat(security): enable table output for scan results while preserving JSON for metrics Set PRETTY_OUTPUT and RESULTS_IN_GITHUB_SUMMARY to true while maintaining JSON output for New Relic integration using --save-results flag feat(security): parse JSON scan results into markdown table Keep JSON output for New Relic integration while adding JQ-based parsing to generate readable table format for PR comments feat(security): parse JSON scan results into markdown table Keep JSON output for New Relic integration while adding JQ-based parsing to generate readable table format for PR comments fix(ci): recreating pretty table feat(security): add formatted Lacework vulnerability report for PR comments - Parse Lacework JSON scan results into a readable markdown table. - Generate a summary table with severity counts and detailed vulnerabilities. - Add support for posting formatted results as PR comments. - Ensure compatibility with consuming workflows. fix(ci): revert to JSON results, table format failing
09b55cc
to
a9dccbb
Compare
Release notes previewNo new release will be created. If you are expecting a release, you will need to either fix a bug or add a feature. |
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.
new outputs:
image-name
: outputs Docker image name after scanning.image-tag
: outputs Docker image tag after scanning.scan-results
: path to scan results file.this will (hopefully) also allow downstream processes to consume these scan results programmatically.
some additional context:
these changes support integrating this GHA with external tools, such as the TypeScript program that will be in
it-security-tooling/security-engineering
, to fetch Lacework scan results and then report them to New Relic.