Repository navigation
add socket tier 1 reachability analysis - #5333
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new GitHub Actions workflow to run Socket (Coana) full-application reachability scanning for Stellar Core’s Tier 1 dependency reachability (Cargo + PyPI), on a weekly schedule and via manual dispatch.
Changes:
- Introduces
.github/workflows/socket-scan.ymlto runsocket scan create --reachwith an explicit--reach-ecosystems=cargo,pypiconfiguration. - Sets up Rust, Python, and Node toolchains needed for analysis, and emits a workflow warning when Tier 2 reachability fallbacks are detected.
- Documents expected job “green/yellow/red” meanings and known baseline Tier 2 fallback behavior.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 693c4b88ae
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
anupsdf
left a comment
There was a problem hiding this comment.
Thanks for adding this socket scan! Looks like this only adds reachability scanning for the Rust and Python dependency surfaces in stellar-core. Are there any options to add C++ reachability coverage since most of the code in stellar-core repo is in C++?
- Make the Node 24 env-var comment date-agnostic (2026-06-16 has passed) - Remove the unused Corepack step; this repo has no package.json, so it only ever shimmed yarn/pnpm that are never invoked - Replace dtolnay/rust-toolchain with `rustup update`, matching the convention in this repo's other Rust workflows and dropping a third-party action from a security workflow Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
It is now dead config, for two independent reasons: - Every action pinned in this workflow already declares `using: node24` in its action.yml, and the var only upgrades actions that declare node20 — so it had no effect here even before the cutover. - GitHub runners have defaulted to Node 24 since 2026-06-16, and Node 20 is fully removed on 2026-09-16. Note the var never silenced the node20 deprecation warnings either: the runner classifies an action from its declared version before consulting this var (actions/runner#4295). Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@anupsdf Correct. Socket has C++ support (not reachability analysis but just plain CVE detection) through the I think we can try https://github.com/google/osv-scanner for scanning C++ third party code used in stellar-core. This seems it can do CVE detection for third party C++ code included through git submodules and vendored source files. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
Suppressed comments (1)
.github/workflows/socket-scan.yml:90
::warning::only creates an annotation; it does not change a successful step or job conclusion, so fallback runs still appear green just like full Tier 1 runs. Because the known Rust fallback already matches on every run, additional fallbacks also produce no new status signal. Use a mechanism that changes the check conclusion (or fail unexpected fallbacks while explicitly allowing the known baseline) if degraded analysis must be visible.
if [ $rc -eq 0 ] && grep -qE "Reachability falls back to Tier 2|fallback to the results from the pre-computed|Reachability falls back to precomputed" /tmp/scan.log; then
echo "::warning::Socket scan completed with Tier 2 fallbacks - some vulnerabilities used precomputed reachability instead of full Tier 1"
More info: https://stellarorg.atlassian.net/wiki/spaces/SCRT/pages/5689311233/Socket+Tier+1+Reachability+Analysis