Open
Conversation
We previously added SARIF tooling and actual use to StrataVerify. This adds the same support to pyAnalyze, which is enabled when adding `--sarif` to a `pyAnalyze` invocation. Testing added to CI.
Contributor
There was a problem hiding this comment.
Pull request overview
Adds SARIF emission support to the strata pyAnalyze command (enabled via --sarif) and wires up CI coverage to validate the generated SARIF output for selected Python test programs.
Changes:
- Extend
strataCLI command handling to support per-command flags and add--sariftopyAnalyze. - Generate and write SARIF output for
pyAnalyzeruns when requested. - Add a new Bash test script for SARIF validation and run it in CI; ignore generated
*.sariffiles in the Python test directory.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| StrataTest/Languages/Python/run_py_analyze_sarif.sh | New test script that runs pyAnalyze --sarif and validates SARIF JSON structure/content. |
| StrataTest/Languages/Python/.gitignore | Ignore generated SARIF files alongside generated Ion files. |
| StrataMain.lean | Add SARIF output to pyAnalyze and introduce per-command flag parsing. |
| .github/workflows/ci.yml | Run the new SARIF test script in CI after existing pyAnalyze tests. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
MikaelMayer
reviewed
Feb 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes:
We previously added SARIF tooling and actual use to StrataVerify. This adds the same support to pyAnalyze, which is enabled when adding
--sarifto apyAnalyzeinvocation. Testing added to CI.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.