Skip to content

[static-analysis] Use a custom format to extract committer and author information#2053

Merged
jacobotb merged 2 commits intomasterfrom
jacobotb/K9VULN-10888/fix-backslashes
Jan 14, 2026
Merged

[static-analysis] Use a custom format to extract committer and author information#2053
jacobotb merged 2 commits intomasterfrom
jacobotb/K9VULN-10888/fix-backslashes

Conversation

@jacobotb
Copy link
Contributor

What and why?

Original code used 'git show' with a custom format to approximate JSON, which broke when one of the fields contained a backslash or a double quote.

Discovered when it failed for someone going by a handle similar to "example\sample".

How?

New code uses one line per field, relying on git removing embedded newlines.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)

Original code used 'git show' with a custom format to approximate JSON, which broke when one of the fields contained a backslash or a double quote.

Current code uses one line per field, relying on git removing embedded newlines.
@jacobotb jacobotb requested a review from a team as a code owner January 13, 2026 21:17
@jacobotb jacobotb changed the title Use a custom format to extract committer and author information [static-analysis] Use a custom format to extract committer and author information Jan 14, 2026
@Drarig29 Drarig29 added static-analysis Related to [sarif, sbom] datadog-ci For PRs spanning multiple commands, and repo-wide changes labels Jan 14, 2026
@jacobotb jacobotb merged commit 8a98727 into master Jan 14, 2026
27 of 28 checks passed
@jacobotb jacobotb deleted the jacobotb/K9VULN-10888/fix-backslashes branch January 14, 2026 16:01
@Drarig29 Drarig29 mentioned this pull request Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

datadog-ci For PRs spanning multiple commands, and repo-wide changes static-analysis Related to [sarif, sbom]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants