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

🦺 Include Finding ID in CodeTF Only When Provided by the Tool #38

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

gilday
Copy link
Contributor

@gilday gilday commented Aug 6, 2024

In cases where a tool does not provide a finding identifier that has the same semantics as guid from SARIF, codemodder does more harm than good when it uses some fallback value to satisfy the required field constraint. I know this, because I'm currently working on the data model for correlating codemod changes to tool issues :-)

We should make the result identifier for fixed / unfixed findings optional. If the tool provides a result ID, then codemodder shall use it. But when the tool provides no such identifier (Snyk 👀), codemodder should not make one up.

In cases where a tool does not provide a finding identifier that has the same semantics as [guid from SARIF](https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/sarif-v2.1.0-errata01-os-complete.html#_Toc141790891), codemodder does more harm than good when it uses some fallback value to satisfy the required field constraint. I know this, because I'm currently working on the data model for correlating codemod changes to tool issues :-)

We should make the result identifier for fixed / unfixed findings optional. If the tool provides a result ID, then codemodder shall use it. But when the tool provides no such identifier (Snyk 👀), codemodder should not make one up.
@gilday gilday requested review from drdavella and nahsra August 6, 2024 18:08
Copy link
Member

@drdavella drdavella left a comment

Choose a reason for hiding this comment

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

No objections but this will require a change to the bindings as well and will probably have some cascading effects.

@gilday gilday merged commit 2e5d6a0 into main Aug 19, 2024
2 checks passed
@gilday gilday deleted the optional-result-identifiers-in-codetf branch August 19, 2024 13:57
gilday added a commit to pixee/codetf-java-bindings that referenced this pull request Aug 19, 2024
gilday added a commit to pixee/codetf-java-bindings that referenced this pull request Aug 20, 2024
gilday added a commit to pixee/codetf-java-bindings that referenced this pull request Aug 20, 2024
gilday added a commit to pixee/codetf-java-bindings that referenced this pull request Aug 20, 2024
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.

2 participants