Feature/artifact blocklist publish audit#10
Closed
Techikrish wants to merge 3 commits into
Closed
Conversation
- Feature 1: Artifact Pattern Blocklist * Detects dangerous file patterns before commit * Supports sourcemaps, build artifacts, private keys, env files, IDE metadata * Configurable via .shieldcommit.yaml with severity levels * Blocks commits with error-level violations - Feature 2: Publish Audit (audit-publish command) * Pre-flight checks before publishing to npm or PyPI * Simulates package content and scans for violations * Supports table and JSON output formats * Auto-detects package type (npm/pypi) * Exit codes: 0=clean, 1=warnings, 2=errors - New modules: * config.py: Configuration parser for .shieldcommit.yaml * artifact_detector.py: Artifact pattern detection logic * publish_audit.py: Publish audit implementation - Updated: * scanner.py: Integrated artifact detection * __main__.py: Added audit-publish command, updated scan output * requirements.txt: Added pyyaml, toml dependencies - Documentation: * FEATURES.md: Comprehensive feature documentation * .shieldcommit.yaml: Example configuration file with all options - Tests: * test_artifact_detector.py: Tests for artifact patterns * test_config.py: Tests for configuration loading
Owner
Author
|
added feature has some bugs and error |
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
Related Issue
Type of Change
Testing
Test command:
Checklist
mainbranchAdditional Context