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

feat(cwe): add cwe into sarif report and KICS CLI results #6845

Merged
merged 58 commits into from
Feb 6, 2024
Merged

Conversation

ArturRibeiro-CX
Copy link
Contributor

Proposed Changes

  • add cwe into sarif report and KICS CLI results.

I submit this contribution under the Apache-2.0 license.

@github-actions github-actions bot added the feature New feature label Jan 4, 2024
Copy link
Contributor

github-actions bot commented Jan 4, 2024

kics-logo

KICS version: v1.7.11

Category Results
HIGH HIGH 0
MEDIUM MEDIUM 0
LOW LOW 0
INFO INFO 0
TRACE TRACE 0
TOTAL TOTAL 0
Metric Values
Files scanned placeholder 1
Files parsed placeholder 1
Files failed to scan placeholder 0
Total executed queries placeholder 49
Queries failed to execute placeholder 0
Execution time placeholder 1

@ArturRibeiro-CX ArturRibeiro-CX self-assigned this Jan 5, 2024
Copy link
Collaborator

@JoaoCxMartins JoaoCxMartins left a comment

Choose a reason for hiding this comment

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

remove development of cyclonedx to another branch

pkg/report/model/cyclonedx_test.go Outdated Show resolved Hide resolved
JoaoCxMartins
JoaoCxMartins previously approved these changes Jan 9, 2024
@@ -43,6 +43,7 @@ type ruleCISMetadata struct {
type sarifMessage struct {
Text string `json:"text"`
MessageProperties sarifProperties `json:"properties,omitempty"`
CWE string `json:"cwe,omitempty"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we really need this item?

gabriel-cx
gabriel-cx previously approved these changes Jan 9, 2024
pkg/report/model/sarif.go Fixed Show fixed Hide fixed
pkg/report/model/sarif.go Fixed Show fixed Hide fixed
Dockerfile Outdated
@@ -66,6 +66,7 @@ RUN wget https://github.com/GoogleCloudPlatform/terraformer/releases/download/0.
# kics-scan ignore-line
COPY --from=build_env /app/bin/kics /app/bin/kics
COPY --from=build_env /app/assets/queries /app/bin/assets/queries
COPY --from=build_env /app/assets/cwe_csv/* /app/bin/assets/cwe_csv
Copy link
Collaborator

Choose a reason for hiding this comment

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

kindly perform this same update into this dockerfiles if needed

@Jeeppler
Copy link
Contributor

Relates to: #6373

JoaoCxMartins
JoaoCxMartins previously approved these changes Jan 29, 2024
cxMiguelSilva
cxMiguelSilva previously approved these changes Jan 29, 2024
Copy link
Collaborator

@cxMiguelSilva cxMiguelSilva left a comment

Choose a reason for hiding this comment

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

Awesome work @ArturRibeiro-CX 🙌
Just make sure the dockerfiles work as expected for the ones not tested in workflows as @gabriel-cx mentioned.

@asofsilva asofsilva merged commit 730aa82 into master Feb 6, 2024
20 checks passed
@asofsilva asofsilva deleted the cwe branch February 6, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants