Skip to content

Suppress static-analysis false positives in shared workflow setup - #75822

Merged
pelikhan merged 3 commits into
mainfrom
copilot/fix-static-analysis-false-positives
Nov 8, 2026
Merged

pelikhan merged 3 commits into
mainfrom
copilot/fix-static-analysis-false-positives

Conversation

Copilot AI commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • TLA+ setup: Add a step-local RGS-018 suppression with its integrity rationale; regenerate the three consuming workflow locks.
# runner-guard:ignore RGS-018 -- Version-pinned TLA+ runtime artifacts are SHA-256 verified before use.

Copilot AI changed the title [WIP] Add scoped suppressions for static analysis false positives Suppress static-analysis false positives in shared workflow setup Nov 8, 2026
Copilot AI requested a review from gh-aw-bot November 8, 2026 04:43
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Great work on addressing the recurring RGS-018 false positives, @Copilot! 👋 The PR is well-focused and the rationale for suppressing these static-analysis warnings is clear and justified—version-pinned artifacts with SHA-256 verification are indeed safe.

Here's one thing to consider for an even stronger contribution:

  • Test coverage — The regenerated workflow locks would benefit from validation tests to ensure they parse correctly and maintain their structure. Consider adding a validation step in the CI pipeline (if not already present) that confirms the generated lock files conform to the expected schema.

The PR looks ready for review otherwise, and the changes are minimal and targeted. Great job!

Generated by ✅ Contribution Check · copilot · routed: opus55 high · ~59 AIC · ⌖ ~2 AIC · ⊞ 4.5K · ◷

@pelikhan
pelikhan marked this pull request as ready for review November 8, 2026 06:06
Copilot AI adaptive review requested due to automatic review settings November 8, 2026 06:06
@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

PR Specification Reviewer

Outcome: reported_no_action

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.

Generated from PR Specification Reviewer · gpt56 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.7K · ◷

Generated by PR Specification Reviewer for #75822

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

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.

Generated from Ponytail Reviewer · routed: gpt56 max · ~2 AIC · ⌖ ~1 AIC · ⊞ 118 · ◷

Generated by Ponytail Reviewer for #75822

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

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.

Generated from Test Quality Sentinel · routed: gpt56 max · ~2 AIC · ⌖ ~2 AIC · ⊞ 6.3K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

✅ 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: reported_no_action

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.

Generated from Design Decision Gate 🏗️ · routed: opus55 medium · ~11 AIC · ⌖ ~2 AIC · ⊞ 7.7K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (pr-code-quality-reviewer)
reviewed_at: 2026-11-08T06:09:43Z
review_event: REQUEST_CHANGES
top_themes:
  - Suppression lacks an independent trust anchor for the verified scripts
files_reviewed:
  - .github/workflows/shared/tla-plus.md
  - .github/workflows/daily-formal-spec-verifier.lock.yml
  - .github/workflows/daily-tlc-test-expert.lock.yml
  - .github/workflows/daily-workflow-security-model.lock.yml
comment_count: 1

Note

This comment is managed by comment memory.

Expand the saved memory block to view or edit the persistent context for this thread.
Edit only the text inside the backtick fences; workflow metadata and the footer are regenerated automatically.

Learn more about comment memory

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.6K · ◷
Comment /review to run again

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread .github/workflows/shared/tla-plus.md Outdated
- name: Prepare pinned TLA+ runtime
shell: bash
run: |
# runner-guard:ignore RGS-018 -- Version-pinned TLA+ runtime artifacts are SHA-256 verified before use.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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-018 suppression 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)

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: hasRunnerGuardInlineIgnore uses 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.md and all three consuming lock files at the committed head (558d07a).
  • ✅ install_tla_runtime.sh verifies both the JAR and JRE SHA-256 digests with verify_release_digest before publishing, so the suppression rationale holds.
  • ✅ The rationale matches the existing koka.md and mcp_setup_scripts.go precedents.

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

Comment thread .github/workflows/shared/tla-plus.md Outdated
- name: Prepare pinned TLA+ runtime
shell: bash
run: |
# runner-guard:ignore RGS-018 -- Version-pinned TLA+ runtime artifacts are SHA-256 verified before use.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[/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 to runner_guard_inline_ignore_test.go.

@copilot please address this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot

Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (.github/workflows/shared/tla-plus.md:9): 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. - Suppress static-analysis false positives in shared workflow setup #75822 (comment)
  3. Review (.github/workflows/shared/tla-plus.md:9): [/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. - Suppress static-analysis false positives in shared workflow setup #75822 (comment)

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
Sous-chef requested-work: a9dc6684a910dc22ecdc8c56028f701b2bccbc2775cea1af359020a3b4da133b d9e0e49e6d13bcedacc83bf81a013bd8fbdc6e61b1327d2183284bead3e7d5c8
Sous-chef requested-state: 61deea3524e099eed3aea0edcf71a53a30201536744524ade196cafacfd5bdba

Generated by 👨🍳 PR Sous Chef · pi · haiku45 · ~12 AIC · ⌖ ~20 AIC · ⊞ 1.2K · ◷
Comment /souschef to run again

Copilot AI commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

@copilot

Copilot assignment requested for the following outstanding work:...

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
Sous-chef requested-work: a9dc6684a910dc22ecdc8c56028f701b2bccbc2775cea1af359020a3b4da133b d9e0e49e6d13bcedacc83bf81a013bd8fbdc6e61b1327d2183284bead3e7d5c8
Sous-chef requested-state: 61deea3524e099eed3aea0edcf71a53a30201536744524ade196cafacfd5bdba

@pelikhan
pelikhan merged commit 8cfbcfb into main Nov 8, 2026
32 checks passed
@pelikhan
pelikhan deleted the copilot/fix-static-analysis-false-positives branch November 8, 2026 08:29
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[AW Top 10] 10 Suppress recurring static analysis false positives

4 participants