Repository navigation
Suppress static-analysis false positives in shared workflow setup - #75822
Conversation
Co-authored-by: gh-aw-bot <[email protected]>
|
Great work on addressing the recurring RGS-018 false positives, Here's one thing to consider for an even stronger contribution:
The PR looks ready for review otherwise, and the changes are minimal and targeted. Great job!
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ PR Specification Reviewer completed successfully! PR Specification ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
✅ Ponytail Reviewer completed successfully! Ponytail ReviewerOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Test Quality Sentinel completed test quality analysis. Test Quality SentinelOutcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft. Design Decision Gate 🏗️Outcome: The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible. Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.
|
Comment MemoryPeek at saved memory (pr-code-quality-reviewer)Note This comment is managed by comment memory.Expand the saved memory block to view or edit the persistent context for this thread.
|
There was a problem hiding this comment.
The suppression is not adequately justified: the workflow verifies scripts copied from the PR checkout against hashes stored in that same PR-controlled fragment, so the checksum does not provide an independent trust anchor. Please use an externally anchored artifact/hash or restrict execution to trusted refs before suppressing RGS-018. The inline comment contains the detailed rationale.
🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again
| - name: Prepare pinned TLA+ runtime | ||
| shell: bash | ||
| run: | | ||
| # runner-guard:ignore RGS-018 -- Version-pinned TLA+ runtime artifacts are SHA-256 verified before use. |
There was a problem hiding this comment.
This suppression is broader than the stated trust guarantee. The installer and release_integrity.sh are copied from $GITHUB_WORKSPACE, while their SHA-256 values are hardcoded in this same PR-controlled workflow fragment; a change to those scripts can be paired with changed hashes and still pass verification. That means this check does not establish that the executed code is reviewed/pinned independently of the PR. Please anchor these hashes/artifacts outside the PR-controlled tree (or restrict the step to trusted refs) before suppressing RGS-018 here, and document that trust boundary.
There was a problem hiding this comment.
Addressed in 0b1eb89. The setup now runs only when github.ref matches the repository’s configured default branch; the trust boundary is documented, and non-default refs skip these checkout-controlled scripts.
There was a problem hiding this comment.
🔵 Needs a closer look
Although all six workflows compile cleanly, the requested security and lint scanners could not run in the read-only environment, so their suppression behavior still needs confirmation in CI.
No open issues 🎉
What changed in this PR
This pull request suppresses the recurring RGS-018 false positive in the shared, checksum-verified TLA+ runtime setup and regenerates the three consuming workflow locks.
Changes:
- Added a scoped
runner-guard:ignore RGS-018suppression with an integrity rationale. - Regenerated the three consuming workflow lock files and admission hashes.
- Preserved version pinning, HTTPS downloads, and SHA-256 verification.
- Strict compilation passed for all three consuming workflows.
| File | Description |
|---|---|
.github/workflows/shared/tla-plus.md |
Adds the scoped RGS-018 suppression while preserving checksum verification. |
.github/workflows/daily-workflow-security-model.lock.yml |
Regenerated lock containing the updated shared setup and workflow hash. |
.github/workflows/daily-tlc-test-expert.lock.yml |
Regenerated lock containing the updated shared setup and workflow hash. |
.github/workflows/daily-formal-spec-verifier.lock.yml |
Regenerated lock containing the updated shared setup and workflow hash. |
Review effort: Lite (auto)
There was a problem hiding this comment.
Skills-Based Review 🧠
Applied /diagnosing-bugs to the suppression change. Approving: the marker is correctly placed, the rationale is accurate, and the pinned digests are verified before use. One non-blocking scope note is posted inline.
📋 Key Themes & Highlights
Key Themes
- Scope of suppression:
hasRunnerGuardInlineIgnoreuses a 35-line look-ahead, wider than the PR text’s "step-local" wording.
Positive Highlights
- ✅ The marker is applied consistently to
shared/tla-plus.mdand all three consuming lock files at the committed head (558d07a). - ✅
install_tla_runtime.shverifies both the JAR and JRE SHA-256 digests withverify_release_digestbefore publishing, so the suppression rationale holds. - ✅ The rationale matches the existing
koka.mdandmcp_setup_scripts.goprecedents.
Review Scope
Reviewed the committed PR head. The local worktree has uncommitted edits that remove the marker from the lock files; those are not part of this PR.
@copilot please address the scope note above (optional).
🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~4 AIC · ⌖ ~2 AIC · ⊞ 5.4K
Comment /matt to run again
| - name: Prepare pinned TLA+ runtime | ||
| shell: bash | ||
| run: | | ||
| # runner-guard:ignore RGS-018 -- Version-pinned TLA+ runtime artifacts are SHA-256 verified before use. |
There was a problem hiding this comment.
[/diagnosing-bugs] Non-blocking scope note: hasRunnerGuardInlineIgnore in pkg/cli/runner_guard_inline_ignore.go accepts a marker up to 35 lines after a finding. This marker therefore also suppresses RGS-018 for compiled lines roughly 772–810, which include the cache-memory and repo-memory setup steps. The PR body wording "step-local" overstates the scope.
💡 Options
- Accept the wider window; those adjacent steps are compiler-generated.
- Or bound the look-ahead to the next
- name:boundary and add a regression case torunner_guard_inline_ignore_test.go.
@copilot please address this.
There was a problem hiding this comment.
Addressed in 0b1eb89. I moved the marker after the verified installer invocation, so the short look-behind still catches its finding while the 35-line look-ahead no longer covers later setup steps. The local scan reported unrelated repo-wide RGS-005 findings, not TLA+ RGS-018 findings.
|
Copilot assignment requested for the following outstanding work:
Once you start work, post this work summary as a PR comment without the leading Copilot mention, including the Sous-chef head, work, and state lines below, to record that the assignment is running. Apply the necessary fixes on this PR's existing branch, reply to each listed review thread and resolve it when addressed. Ignore feedback already answered or resolved; stop when only human review or CI remains. Do not merge or trigger CI. Sous-chef requested-head: 558d07a
|
Starting the assigned work: merge the latest main, address the TLA+ trust-boundary and suppression-scope feedback, regenerate and validate affected locks, then respond to both review threads. I will not merge the PR or trigger CI. Sous-chef requested-head: 558d07a |
Co-authored-by: gh-aw-bot <[email protected]>
|
🎉 This pull request is included in a new release. Release: |
Recurring RGS-018 reports flagged the shared TLA+ runtime setup, whose downloads are version-pinned and checksum-verified. The hippo workflow already has a justified, scoped SC2086 suppression for intentional argument splitting.
# runner-guard:ignore RGS-018 -- Version-pinned TLA+ runtime artifacts are SHA-256 verified before use.