- Notifications
You must be signed in to change notification settings - Fork8
Refactor file detection and scanning logic to fix commit file handling#101
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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
- Fix file argument parsing to handle list, string, and JSON formats more robustly- Clarify git repository detection and file selection logic with better separation of concerns- Add force_api_mode to handle cases where no supported manifest files are found- Replace ambiguous should_skip_scan logic with clearer file detection flow- Add create_full_scan_with_report_url method to Core for API-mode scanning- Improve logging messages and remove unused code (get_all_scores method)- Ensure consistent diff object initialization and ID handling- Automatically enable disable_blocking when no supported files are detected
github-actionsbot commentedJul 23, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
🚀 Preview package published! Install with: pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple socketsecurity==2.1.23.dev1 Docker image: |
philidem approved these changesJul 23, 2025
Uh oh!
There was an error while loading.Please reload this page.
…r exhaustion- Add --save-submitted-files-list option to output JSON with list of scanned files, sizes, and metadata for debugging- Add --save-manifest-tar option to create tar.gz archive of all manifest files with original directory structure- Implement lazy file loading to prevent 'Too many open files' errors when scanning large numbers of manifest files- Add system resource utilities to check file descriptor limits and warn when approaching ulimit -n- Update .gitignore to exclude AI testing files and verification scripts- Update README with comprehensive documentation for new debugging features and examples
69ec6b9 intomain 6 checks passed
Uh oh!
There was an error while loading.Please reload this page.
Sign up for freeto 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.
Root Cause
The files logic for detecting if there were changed manifest files had been broken over time. At this point it was completely decoupled and in most instances things didn't work correctly without
--ignore-commit-filesFix
Public Changelog
• Fixed file detection logic that was preventing proper scanning of changed manifest files
• Improved handling of different file input formats (list, string, JSON) for better reliability
• Enhanced automatic detection of git repository changes and manifest file filtering
• Fixed cases where scans would incorrectly skip when manifest files were present in commits