Skip to content

add socket tier 1 reachability analysis - #5333

Merged
kanwalpreetd merged 5 commits into
stellar:masterfrom
kanwalpreetd:master
Aug 28, 2026
Merged

kanwalpreetd merged 5 commits into
stellar:masterfrom
kanwalpreetd:master

Conversation

@kanwalpreetd

Copy link
Copy Markdown
Contributor

Copilot AI balanced review requested due to automatic review settings June 29, 2026 18:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.yml to run socket scan create --reach with an explicit --reach-ecosystems=cargo,pypi configuration.
  • 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.

Comment thread .github/workflows/socket-scan.yml Resolved
Comment thread .github/workflows/socket-scan.yml Resolved
Comment thread .github/workflows/socket-scan.yml Resolved
Comment thread .github/workflows/socket-scan.yml Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread .github/workflows/socket-scan.yml Resolved

@anupsdf anupsdf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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++?

kanwalpreetd and others added 3 commits August 20, 2026 15:51
- 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]>
@kanwalpreetd

Copy link
Copy Markdown
Contributor Author

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++?

@anupsdf Correct. Socket has C++ support (not reachability analysis but just plain CVE detection) through the conan package manager: https://docs.socket.dev/docs/language-support, which we don't use. So, there is no way to scan C++ dependencies through Socket.

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.

@kanwalpreetd
kanwalpreetd enabled auto-merge August 27, 2026 23:50
Copilot AI review requested due to automatic review settings August 28, 2026 08:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"

Comment thread .github/workflows/socket-scan.yml Resolved
@kanwalpreetd
kanwalpreetd added this pull request to the merge queue Aug 28, 2026
Merged via the queue into stellar:master with commit 7791bbe Aug 28, 2026
70 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.

3 participants