You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Move ShellCheck SARIF conversion into a tested helper #6959
The ShellCheck job in .github/workflows/code-scanning.yaml embeds a 74-line program that captures ShellCheck JSON, converts it to SARIF with a large jq filter, creates a fallback SARIF document, and decides whether upload is possible.
Work
Add one focused helper that accepts ShellCheck json1 input and writes validated SARIF 2.1.0 output.
Keep shell-file discovery, package installation, CodeQL action wiring, permissions, and SARIF upload in YAML.
Make ShellCheck process status and SARIF generation status explicit so findings can upload without hiding conversion failures.
Acceptance criteria
The large inline jq program and fallback document leave workflow YAML.
Hi! I’d like to work on this. I’ll extract the ShellCheck JSON1-to-SARIF conversion into a focused TypeScript helper, preserve the existing severity mapping, rule deduplication, locations, messages, and empty/malformed input behavior, then add direct transformation tests and thin workflow-wiring coverage. I’ll keep the implementation scoped to the requirements described here.
Before I finalize this, could you confirm the intended trust boundary for #6959? The current pull_request ShellCheck job declares security-events: write. My patch runs the checked-in TypeScript converter in that job and sets actions/checkout to persist-credentials: false, so the helper does not receive persisted Git credentials and is not invoked with sudo; only the preceding ShellCheck package-installation step uses sudo.
Is that the intended design for this sub-issue, or should conversion run from a base-trusted checkout or a separate unprivileged job?
Activity
agrovr commentedon Jul 15, 2026
Hi! I’d like to work on this. I’ll extract the ShellCheck JSON1-to-SARIF conversion into a focused TypeScript helper, preserve the existing severity mapping, rule deduplication, locations, messages, and empty/malformed input behavior, then add direct transformation tests and thin workflow-wiring coverage. I’ll keep the implementation scoped to the requirements described here.
agrovr commentedon Jul 16, 2026
Before I finalize this, could you confirm the intended trust boundary for #6959? The current
pull_requestShellCheck job declaressecurity-events: write. My patch runs the checked-in TypeScript converter in that job and setsactions/checkouttopersist-credentials: false, so the helper does not receive persisted Git credentials and is not invoked withsudo; only the preceding ShellCheck package-installation step usessudo.Is that the intended design for this sub-issue, or should conversion run from a base-trusted checkout or a separate unprivileged job?
refactor(ci): extract ShellCheck SARIF conversion (#7060)