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

platform(sca): Fix bom report #3867

Merged
merged 21 commits into from
Nov 15, 2022
Merged

platform(sca): Fix bom report #3867

merged 21 commits into from
Nov 15, 2022

Conversation

AdamDev
Copy link
Contributor

@AdamDev AdamDev commented Nov 13, 2022

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Description

On creating the BOM report, the delimiter was a comma character, it cause an issue because there are some licenses that contain comma characters.

Fixes # (issue)

Instead of encode and decode the licenses to string, just pass them as a list.

New/Edited policies (Delete if not relevant)

Description

Include a description of what makes it a violation and any relevant external links.

Fix

How does someone fix the issue in code and/or in runtime?

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my feature, policy, or fix is effective and works
  • New and existing tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@AdamDev AdamDev changed the title platform(sca): Fix licenses delimiter platform(sca): Fix bom report Nov 13, 2022
Copy link
Contributor

@Saarett Saarett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! Commented 😄

tests/sca_package/test_runner.py Show resolved Hide resolved
checkov/common/output/common.py Outdated Show resolved Hide resolved
checkov/common/output/common.py Outdated Show resolved Hide resolved
checkov/common/output/csv.py Show resolved Hide resolved
Copy link
Contributor

@gruebel gruebel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice work, added some comments

checkov/common/output/common.py Outdated Show resolved Hide resolved
checkov/common/output/common.py Outdated Show resolved Hide resolved
checkov/common/output/common.py Outdated Show resolved Hide resolved
checkov/common/output/common.py Outdated Show resolved Hide resolved
checkov/common/output/common.py Outdated Show resolved Hide resolved
checkov/common/output/common.py Outdated Show resolved Hide resolved
checkov/common/output/csv.py Outdated Show resolved Hide resolved
checkov/common/output/csv.py Outdated Show resolved Hide resolved
checkov/common/output/csv.py Show resolved Hide resolved
tests/sca_package/test_runner.py Show resolved Hide resolved
@AdamDev AdamDev requested a review from gruebel November 14, 2022 18:05
Copy link
Contributor

@Saarett Saarett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job! 🎖️

@AdamDev AdamDev merged commit 49854af into master Nov 15, 2022
@AdamDev AdamDev deleted the fix_bom_report branch November 15, 2022 08:07
ayajbara pushed a commit that referenced this pull request Nov 15, 2022
* fix bom report

* bug fixes

* fix testing

* fix csv

* clean

* clean

* clean

* fix lint and testing

* fix tests

* fix lint

* make test support new case

* add logs

* Update checkov/common/output/common.py

Co-authored-by: Anton Grübel <[email protected]>

* Update checkov/common/output/common.py

Co-authored-by: Anton Grübel <[email protected]>

* fix pr comments

* Update checkov/common/output/csv.py

Co-authored-by: Anton Grübel <[email protected]>

* move unknown string to const

* Update checkov/common/output/csv.py

Co-authored-by: Anton Grübel <[email protected]>

* fix lint

* add tests

* prettifier test

Co-authored-by: Adam Varsano <[email protected]>
Co-authored-by: Anton Grübel <[email protected]>
ayajbara pushed a commit that referenced this pull request Nov 15, 2022
* fix bom report

* bug fixes

* fix testing

* fix csv

* clean

* clean

* clean

* fix lint and testing

* fix tests

* fix lint

* make test support new case

* add logs

* Update checkov/common/output/common.py

Co-authored-by: Anton Grübel <[email protected]>

* Update checkov/common/output/common.py

Co-authored-by: Anton Grübel <[email protected]>

* fix pr comments

* Update checkov/common/output/csv.py

Co-authored-by: Anton Grübel <[email protected]>

* move unknown string to const

* Update checkov/common/output/csv.py

Co-authored-by: Anton Grübel <[email protected]>

* fix lint

* add tests

* prettifier test

Co-authored-by: Adam Varsano <[email protected]>
Co-authored-by: Anton Grübel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants