Suppress systemic runner-guard gVisor false positives and remove docker-sbx shellcheck noise at source - #51341
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
PR Triage
Touches 60 generated
|
There was a problem hiding this comment.
Pull request overview
Updates shared workflow generators to reduce Runner Guard and ShellCheck noise, then regenerates affected workflows.
Changes:
- Adds an RGS-012 suppression for gVisor downloads.
- Separates Docker config assignment/export and replaces unused loop variables.
- Updates tests and 56 generated lock workflows.
Show a summary per file
| File | Description |
|---|---|
pkg/workflow/gvisor_test.go |
Tests gVisor suppression output. |
pkg/workflow/docker_sbx_test.go |
Tests ShellCheck-safe bootstrap output. |
pkg/workflow/docker_sbx_install.go |
Fixes SC2034 and SC2155 patterns. |
pkg/workflow/copilot_engine_installation.go |
Adds the gVisor RGS-012 directive. |
.github/workflows/daily-file-diet.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-fact.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-experiment-report.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-evals-report.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-elixir-credo-snippet-audit.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-doc-updater.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-doc-healer.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-credit-limit-test.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-compiler-threat-spec-optimizer.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-compiler-quality.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-community-attribution.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-code-metrics.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-code-debt-aider.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-cli-performance.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-choice-test.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-caveman-optimizer.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-cache-strategy-analyzer.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-byok-ollama-test.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-awf-spec-compiler-surfacing.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-aw-cross-repo-compile-check.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-astrostylelite-markdown-spellcheck.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-assign-issue-to-user.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-arxiv-researcher.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-architecture-diagram.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-ambient-context-optimizer.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-agentrx-trace-optimizer.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-agent-of-the-day-blog-writer.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/daily-action-setup-security-audit.lock.yml |
Regenerates docker-sbx bootstrap. |
.github/workflows/code-simplifier.lock.yml |
Adds generated gVisor directive. |
.github/workflows/code-scanning-fixer.lock.yml |
Adds generated gVisor directive. |
.github/workflows/cloclo.lock.yml |
Adds generated gVisor directive. |
.github/workflows/cli-version-checker.lock.yml |
Adds generated gVisor directive. |
.github/workflows/cli-consistency-checker.lock.yml |
Adds generated gVisor directive. |
.github/workflows/claude-code-user-docs-review.lock.yml |
Adds generated gVisor directive. |
.github/workflows/ci-coach.lock.yml |
Adds generated gVisor directive. |
.github/workflows/chaos-pr-bundle-fuzzer.lock.yml |
Adds generated gVisor directive. |
.github/workflows/changeset.lock.yml |
Adds generated gVisor directive. |
.github/workflows/breaking-change-checker.lock.yml |
Adds generated gVisor directive. |
.github/workflows/bot-detection.lock.yml |
Adds generated gVisor directive. |
.github/workflows/blog-auditor.lock.yml |
Adds generated gVisor directive. |
.github/workflows/aw-failure-investigator.lock.yml |
Adds generated gVisor directive. |
.github/workflows/avenger.lock.yml |
Adds generated gVisor directive. |
.github/workflows/auto-triage-issues.lock.yml |
Adds generated gVisor directive. |
.github/workflows/audit-workflows.lock.yml |
Adds generated gVisor directive. |
.github/workflows/artifacts-summary.lock.yml |
Adds generated gVisor directive. |
.github/workflows/archivx-agentic-workflows-analyzer.lock.yml |
Adds generated gVisor directive. |
.github/workflows/architecture-guardian.lock.yml |
Adds generated gVisor directive. |
.github/workflows/archie.lock.yml |
Adds generated gVisor directive. |
.github/workflows/approach-validator.lock.yml |
Adds generated gVisor directive. |
.github/workflows/api-consumption-report.lock.yml |
Adds generated gVisor directive. |
.github/workflows/ai-moderator.lock.yml |
Adds generated gVisor directive. |
.github/workflows/agentic-token-trend-audit.lock.yml |
Adds generated gVisor directive. |
.github/workflows/agent-persona-explorer.lock.yml |
Adds generated gVisor directive. |
.github/workflows/agent-performance-analyzer.lock.yml |
Adds generated gVisor directive. |
.github/workflows/ace-editor.lock.yml |
Adds generated gVisor directive. |
.github/workflows/ab-testing-advisor.lock.yml |
Adds generated gVisor directive. |
Review details
Tip
Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 60/60 changed files
- Comments generated: 3
- Review effort level: Balanced
| version := constants.DefaultGVisorVersion | ||
| return GitHubActionStep([]string{ | ||
| " - name: Install gVisor (runsc)", | ||
| " # runner-guard:ignore RGS-012 -- pinned release, SHA-512 verified artifacts, download-only step (no outbound secret transmission).", |
| assert.Contains(t, content, "Install gVisor (runsc)", "step should have a recognizable name") | ||
| assert.Contains(t, content, "runner-guard:ignore RGS-012", | ||
| "step should include runner-guard suppression for verified gVisor download false-positive") |
| assert.Contains(t, content, `DOCKER_CONFIG="$(mktemp -d)"`, "must isolate Docker auth in a temporary config") | ||
| assert.Contains(t, content, `export DOCKER_CONFIG`, "must export isolated Docker auth directory") |
|
✅ Test Quality Sentinel completed test quality analysis. No test files were added or modified in this PR. PR #51341 modifies production shell-generation code (docker_sbx_install.go, copilot_engine_installation.go) and adds assertions to existing test functions (docker_sbx_test.go, gvisor_test.go) to validate the new behavior. The pre-fetch analysis identified zero new/modified test functions — only inline assertion additions to existing tests. Test Quality Sentinel skipped.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. No ADR enforcement needed: PR #51341 does not have the 'implementation' label and has only 11 new lines of code in business logic directories (threshold: 100).
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ PR Code Quality Reviewer completed the code quality review. Warning Threat Detection Engine Failure — The analysis engine could not complete. This is a tooling failure, not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs for details. Warning Firewall blocked 1 domainThe following domain was blocked by the firewall during workflow execution:
To allow these domains, add them to the network:
allowed:
- defaults
- "api.individual.githubcopilot.com"See Network Configuration for more information.
|
There was a problem hiding this comment.
The changes are correct and well-reasoned:
- SC2155 fix: Splitting
export DOCKER_CONFIG="$(mktemp -d)"into separate assignment + export lines correctly preserves the exit code of$(mktemp -d)which would otherwise be masked. - SC2034 fix: Using
_as the loop variable for unused iteration counters is idiomatic shell. - RGS-012 suppression: The justification (pinned release, SHA-512 verified, download-only) is accurate and appropriate. Placing the annotation in the template source ensures it propagates to all generated lock files via recompilation.
- Tests: Both
docker_sbx_test.goandgvisor_test.gocorrectly assert the new patterns.
No actionable issues found.
🧵 Reviewed using Impeccable skills by Impeccable Skills Reviewer · sonnet46 · 18.8 AIC · ⌖ 7.14 AIC · ⊞ 5.5K
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /diagnosing-bugs and /tdd — changes are clean and well-tested; approving.
📋 Key Themes & Highlights
Positive Highlights
- ✅ Root cause fixed in the generator source (
docker_sbx_install.go,copilot_engine_installation.go) so all consumers benefit via recompilation — not a per-file workaround. - ✅ Both shellcheck fixes (
SC2155split declaration/export,SC2034unused-variable_) follow the canonical patterns for these warnings. - ✅ Tests in
docker_sbx_test.goandgvisor_test.goare updated to assert the new patterns and explicitly assert the old patterns are absent (NotContains) — good regression coverage. - ✅ The runner-guard suppression comment is narrow and well-justified (pinned release, SHA-512 verified, download-only).
- ✅ Generated lock files are consistently propagated.
Minor Observations (non-blocking)
- The
runner-guard:ignorecomment is a single long line. Some linters flag long lines; not a blocker here. - No CONTEXT.md or ADR update needed — these are suppressions of pre-existing static-analysis patterns, not new abstractions.
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · sonnet46 · 19.5 AIC · ⌖ 7.43 AIC · ⊞ 7.1K
Comment /matt to run again
|
🎉 This pull request is included in a new release. Release: |
Static analysis noise increased due to shared template emissions: runner-guard
RGS-012repeatedly flagged the gVisor installer path, and docker-sbx bootstrap scripts introduced repeatedSC2034/SC2155warnings across generated workflows. This PR addresses both in compiler sources so fixes propagate via regeneration instead of per-file edits.gVisor template: annotate intentional download pattern
runner-guardsuppression comment on the generated Install gVisor (runsc) step in the shared generator.RGS-012false positives in generated lock files.docker-sbx template: fix shellcheck-triggering script patterns
export DOCKER_CONFIG="$(mktemp -d)"SC2155.iwith_in daemon polling loops to satisfySC2034.Propagated via compilation output
.lock.ymlworkflows so template-level fixes are reflected consistently across all consumers.Example (docker-sbx script change):