Skip to content

CodeQL only scans workflow YAML — the ~27,000-line Shell/Perl codebase has no SAST coverage beyond shellcheck

Id: TD-PPagop-26082420 · Status: resolved · Filed: 2026-08-24 · Resolved: 2026-09-13 · Ref: #1466 · Review: reviews/project-review-2026-08-23 R-17 F-CI-02

Severity: Low

.github/workflows/codeql.yml explicitly scans only the actions language (GitHub Actions workflow YAML), because CodeQL has no Shell or Perl support. The ~27,000 lines of lib/, scripts/, and the two cycle entry points have no automated security-pattern scanning beyond shellcheck’s style/correctness checks, which are not a security scanner — they catch quoting and portability bugs, not injection-shaped patterns as a category.

This is a genuine tooling gap in the shell/Perl ecosystem rather than an oversight: CodeQL was likely adopted for its GitHub-native integration without anyone separately sourcing a shell-aware alternative.

Ongoing cost: low today given the codebase’s otherwise strong quoting discipline (this review’s own targeted search found nothing exploitable outside TD-PPagop-26082407), but a security-relevant shell pattern introduced in the future would not be caught by any automated scanner.

Suggested fix: evaluate a shell/Perl-aware SAST tool (e.g. Semgrep with a community shell ruleset) against this codebase’s actual style as a spike first — false-positive rate on ~250 scripts of this specific idiom is unknown — and add it to CI as non-blocking/report-only initially if the signal-to-noise ratio looks workable, only promoting to a required check after an observation period.

Migrated to https://github.com/Poetic-Poems/agent-ops/issues/976.