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

check rule existence in extensions #1434

Merged
merged 1 commit into from
Sep 3, 2024
Merged

Conversation

juli1
Copy link
Contributor

@juli1 juli1 commented Sep 3, 2024

What and why?

We check that the SARIF file is valid to check that all rules are defined. We currently check in the tool section and not in the extensions. When processing a SARIF file that does have rules in extensions, it fails.

How?

Detect rules in extensions

@juli1 juli1 added the static-analysis Related to [sarif, sbom] label Sep 3, 2024
@juli1 juli1 requested review from a team as code owners September 3, 2024 14:34
@juli1 juli1 requested a review from amaanq September 3, 2024 14:34
@datadog-datadog-prod-us1
Copy link

Datadog Report

Branch report: juli1/rules-in-extensions
Commit report: 7527eae
Test service: datadog-ci-tests

✅ 0 Failed, 1656 Passed, 0 Skipped, 2m 1.35s Total duration (1m 25.7s time saved)

@@ -58,6 +58,18 @@ export const checkForError = (filePath: string): string[] => {
}
}
}
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
Copy link
Contributor

Choose a reason for hiding this comment

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

That's not ideal, but the whole function does that so I'll let it pass. It could be better typed in the future 😁

@juli1 juli1 merged commit 5ecec40 into master Sep 3, 2024
19 checks passed
@juli1 juli1 deleted the juli1/rules-in-extensions branch September 3, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
static-analysis Related to [sarif, sbom]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants