feature: Add message subcommand to scan run for generic protobuf injection#996
Merged
feature: Add message subcommand to scan run for generic protobuf injection#996
Conversation
amat-osto
requested changes
Mar 27, 2026
…eat/message-cli-subcommand # Conflicts: # src/ostorlab/cli/scan/run/assets/__init__.py
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #996 +/- ##
==========================================
+ Coverage 65.55% 65.63% +0.07%
==========================================
Files 386 389 +3
Lines 16742 16849 +107
==========================================
+ Hits 10975 11058 +83
- Misses 5767 5791 +24 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
3asm
requested changes
Apr 2, 2026
3asm
approved these changes
Apr 2, 2026
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.
Summary
oxo scan run messagesubcommand that injects any protobuf message onto the bus by selector and proto text format filesrc/ostorlab/assets/message.py— genericMessageasset that holds a dynamic selector and pre-computed proto bytes_find_package_nameto dynamically resolve the proto class from the selectorUsage
oxo scan run --agent=agent/ostorlab/nebula message \ --selector "v3.report.risk" \ --textproto risk.textprotoWhere
risk.textproto: