Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

process: make non-existent paths non-fatal, sort scan paths #493

Merged
merged 9 commits into from
Oct 7, 2024

Conversation

tstromberg
Copy link
Collaborator

scan --processes was exiting for me because qemu had been upgraded from under it. Now it logs an error, and also sorts the process list so that the scan results aren't jumping around so much.

Example run:

2024/10/06 22:34:07 ERROR qemu-system-aarch64[43299]: no such file or directory
🔎 Scanning "/Applications/Elastic Security.app/Contents/MacOS/Elastic Security"
🔎 Scanning "/Applications/Firefox Developer Edition.app/Contents/MacOS/firefox"
🔎 Scanning "/Applications/Firefox Developer Edition.app/Contents/MacOS/plugin-container.app/Contents/MacOS/plugin-container"
🔎 Scanning "/Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/129.0.6668.71/Helpers/Google Chrome Helper (GPU).app/Contents/MacOS/Google Chrome Helper (GPU)"
🔎 Scanning "/Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/129.0.6668.71/Helpers/Google Chrome Helper (Plugin).app/Contents/MacOS/Google Chrome Helper (Plugin)"
🔎 Scanning "/Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/129.0.6668.71/Helpers/Google Chrome Helper (Renderer).app/Contents/MacOS/Google Chrome Helper (Renderer)"
🔎 Scanning "/Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Versions/129.0.6668.71/Helpers/Google Chrome Helper.app/Contents/MacOS/Google Chrome Helper"

@tstromberg tstromberg requested a review from egibs October 7, 2024 02:37
@tstromberg tstromberg enabled auto-merge (squash) October 7, 2024 12:11
@tstromberg tstromberg merged commit d47acff into chainguard-dev:main Oct 7, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants