Add repository scanning mode with SARIF export and workflow integration#17
Open
ig596 wants to merge 2 commits into
Open
Add repository scanning mode with SARIF export and workflow integration#17ig596 wants to merge 2 commits into
ig596 wants to merge 2 commits into
Conversation
Contributor
|
If you're new to commit signing, there are different ways to set it up: Sign commits with
|
c4b67be to
cb7ed76
Compare
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.
Motivation
targetoptional when a scan path is provided and adding safer input sanitization and workflow command escaping.Description
--scan-pathand--sarif-fileoptions to the CLI and corresponding inputs inaction.ymland.github/workflows/run-reputation-check.yaml, and addedoutput-filepassthrough for raw JSON output.network_reputation_check/scanner.pywhich extracts, normalizes, deduplicates, and filters public indicators while skipping large files and common dirs.network_reputation_check/sarif.pyand integrated SARIF emission and per-location workflow annotations intonetwork_reputation_check/main.py(includingsanitize_target,_escape_workflow_command_value, andemit_annotation).security-events: writeand upload SARIF when provided.Testing
pytest, including updatedtests/test_cli.pyand newtests/test_scanner_and_sarif.py, which exercise CLI behavior, scan-mode SARIF generation, sanitizer/escape helpers, scanner extraction, and SARIF levels.Codex Task