Skip to content

Add CodeQL code scanning workflow for Rust vulnerability detection#2466

Closed
Copilot wants to merge 2 commits intomainfrom
copilot/run-skills-to-find-vulnerabilities
Closed

Add CodeQL code scanning workflow for Rust vulnerability detection#2466
Copilot wants to merge 2 commits intomainfrom
copilot/run-skills-to-find-vulnerabilities

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 31, 2026

What

Add .github/workflows/codeql.yml to enable GitHub CodeQL static analysis on the Rust codebase.

Why

The repo had no SAST tooling — only cargo-deny for supply-chain checks (advisories, bans, licenses, sources). CodeQL adds source-level vulnerability detection, with results surfaced in the Security → Code Scanning tab.

Workflow details:

  • Triggers on push/PR to main/release/** and weekly (Monday UTC midnight)
  • Rust with manual build mode; installs libudev-dev/libdbus-1-dev, runs cargo build --bin stellar
  • Grants minimum required permissions (security-events: write)
  • 10-minute timeout on the build step

Known limitations

CodeQL Rust support is relatively new; query coverage is narrower than for languages like Java or Go. Supply-chain vulnerabilities remain covered by cargo-deny.

Agent-Logs-Url: https://github.com/stellar/stellar-cli/sessions/dbb9dc2a-5862-4eeb-a6d4-45e37bb32a6e

Co-authored-by: sagpatil <1414227+sagpatil@users.noreply.github.com>
Copilot AI changed the title [WIP] Add script to run skills for vulnerability detection Add CodeQL code scanning workflow for Rust vulnerability detection Mar 31, 2026
Copilot AI requested a review from sagpatil March 31, 2026 20:44
@sagpatil sagpatil closed this Mar 31, 2026
@github-project-automation github-project-automation bot moved this from Backlog (Not Ready) to Done in DevX Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants