Add repository scan mode with SARIF output, scanner and SARIF generation; update CLI, action inputs, and CI#18
Open
ig596 wants to merge 1 commit into
Conversation
753aac4 to
fcc4db6
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
Description
network_reputation_check/scanner.pyto discover, normalize, deduplicate, and filter public indicators from a repository path and addnetwork_reputation_check/sarif.pyto build SARIF payloads and classify severity levels.network_reputation_check/main.py) with--scan-pathand--sarif-fileoptions, asanitize_targethelper,_escape_workflow_command_valueandemit_annotationto write safe GitHub Actions annotations, and flow to run checks across discovered indicators with JSON and SARIF output support.action.ymlandREADME.mdto expose optionalscan-path,sarif-file, andoutput-fileinputs and maketargetoptional when scan mode is used, and wire inputs into the Docker action args.ci.yaml, stop committing coverage/pre-commit changes from CI and instead upload the coverage badge as an artifact, and enhancerun-reputation-check.yamlwithscan-path/sarif-fileinputs and SARIF upload step.Testing
poetry run pytest, including updatedtests/test_cli.pyand newtests/test_scanner_and_sarif.py, and all tests succeeded.Codex Task