Skip to content

Suppress RGS-018 false positive in pinned TLA+ setup - #74741

Merged
pelikhan merged 2 commits into
mainfrom
copilot/suppress-rgs-018-false-positive
Nov 4, 2026
Merged

pelikhan merged 2 commits into
mainfrom
copilot/suppress-rgs-018-false-positive

Conversation

Copilot AI commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Runner-guard flagged the TLA+ runtime setup because a verified SHA-256 checksum coincidentally matched a payload-decoding signature. The downloads are checksum-verified before extraction or use.

  • Suppression: Add the ignore directive as the first line inside the shared step’s script body, where it survives workflow compilation:
    run: |
      # runner-guard:ignore RGS-018
      set -euo pipefail
  • Generated workflows: Regenerate locks for both workflows importing the shared TLA+ setup.

Copilot AI changed the title [WIP] Suppress RGS-018 false positive in daily workflow security model Suppress RGS-018 false positive in pinned TLA+ setup Nov 4, 2026
Copilot AI requested a review from gh-aw-bot November 4, 2026 04:35
@pelikhan
pelikhan marked this pull request as ready for review November 4, 2026 05:50
Copilot AI adaptive review requested due to automatic review settings November 4, 2026 05:50
@github-actions

github-actions Bot commented Nov 4, 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 4, 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 xhigh · ~13 AIC · ⌖ ~2 AIC · ⊞ 7.7K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 4, 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 #74741

@github-actions

github-actions Bot commented Nov 4, 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 · ⌖ ~1 AIC · ⊞ 6.3K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

Caution

agentic threat detected
Threat detection flagged this output in warn mode. Manual review is REQUIRED before any follow-up automation.

Details

Potential security threats were detected in the agent output.

Review the workflow run logs for details.

🔎 Code quality review by PR Code Quality Reviewer

@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.

Caution

agentic threat detected
Threat detection flagged this output in warn mode. Manual review is REQUIRED before any follow-up automation.

Details

Potential security threats were detected in the agent output.

Review the workflow run logs for details.

Reviewed the changed workflow source and regenerated locks. I found no actionable correctness, security, or maintainability issues in the patch; the checksum verification remains in place and the suppression is scoped to the intended shared setup step.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~2 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.

Skills-Based Review 🧠

Applied /tdd and /diagnosing-bugs to this 9-line suppression. The change is correct and in scope, with two small gaps to close before merge.

📋 Key Themes & Highlights

Key Themes

  • Regression guard missing: nothing asserts the directive survives compilation into the two .lock.yml files.
  • Rationale missing: the directive has no -- <reason> suffix, unlike the other RGS directives in the repo.

Positive Highlights

  • ✅ Placing the directive inside the script body, after the shell line, is the right location. It survives compilation, and the committed run: strings in both lock files contain it.
  • ✅ The suppression is scoped to one rule ID (RGS-018) on one step, not a file-wide or workflow-wide disable.
  • ✅ The checksum verification already in the step is the real mitigation, and the PR description states it accurately.

@copilot please address the review comments above.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~4 AIC · ⌖ ~1 AIC · ⊞ 5.4K
Comment /matt to run again

- name: Prepare pinned TLA+ runtime
shell: bash
run: |
# runner-guard:ignore RGS-018

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.

[/tdd] Nothing guards this suppression. The only existing shared/tla-plus test in pkg/workflow/compiled_lock_files_test.go reads the source .md, so a regeneration or template change could drop the directive from the compiled .lock.yml files and silently re-enable RGS-018.

💡 Suggested test

Add a case that reads daily-tlc-test-expert.lock.yml and daily-workflow-security-model.lock.yml and asserts each contains # runner-guard:ignore RGS-018 in the Prepare pinned TLA+ runtime step. The compiled form is a single-line quoted string, so a plain substring check is enough.

@copilot please address this.

- name: Prepare pinned TLA+ runtime
shell: bash
run: |
# runner-guard:ignore RGS-018

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] Add the rationale that the other RGS directives in this repo carry (-- <reason>). Without it, a reviewer cannot tell why the suppression is safe without reading the PR. The filter matches on the rule-ID substring, so the suffix does not change behavior.

💡 Suggested line
      # runner-guard:ignore RGS-018 -- pinned Temurin JRE and TLC jar are SHA-256 verified before extraction or use.

The existing RGS-018 directive in daily-byok-ollama-test.md follows the same pattern.

@copilot please address this.

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.

🟡 Changes recommended

The shared TLA+ workflow’s security-rule suppression lacks a rationale explaining SHA-256 verification of both pinned downloads, and both importing workflows need recompilation after it is added.

1 open issue
What changed in this PR

Addresses #73436 by adding a targeted RGS-018 suppression to gh-aw’s shared TLA+ runtime setup. Download pinning and SHA-256 verification remain unchanged.

Changes:

  • Places the suppression inside the script body so it survives workflow compilation.
  • Regenerates both importing workflows, including metadata and admission hashes.
File Description
.github/​workflows/​shared/​tla-plus.md Adds the suppression before the runtime setup commands.
.github/​workflows/​daily-workflow-security-model.lock.yml Includes the suppression and refreshed workflow hashes.
.github/​workflows/​daily-tlc-test-expert.lock.yml Includes the suppression and refreshed workflow hashes.

Review effort: Max (auto)

- name: Prepare pinned TLA+ runtime
shell: bash
run: |
# runner-guard:ignore RGS-018
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Note

The pull request was not created — a fallback review issue was created instead due to protected file changes: #74774

PR finisher

Submitted for publication (staged, not yet confirmed pushed):

  • Merged main into the branch.
  • Added the SHA-256 rationale to the RGS-018 directive in shared/tla-plus.md.
  • Extended the shared/tla-plus test in compiled_lock_files_test.go to require the directive.

Validation: TestSmokeAndCoverageFailureContracts passes. make agent-report-progress failed only because golangci-lint is not installed here. make recompile was run; generated .lock.yml files are excluded from the submission, so the two importing workflows need recompiling by a maintainer. The test checks the source .md, not the lock files, so the requested compiled-lock guard is not added. Review threads are left open and unanswered until the push is published. CI needs a maintainer re-trigger.

PR finisher dispatch requested for the following outstanding work (see items above).

Sous-chef head: e92473d
Sous-chef work: 4a6b3a2232389584f67f186e93819910c96d2ee22173ff2739c52ab1a26c9baa 54217af5d330260eb3449ea383e8f172e774b8be3c40807c2721f7a79da2ec72 f0fbca8d28960c262ef3a9e408dffdf7e690d4540e0a43b891cbc163add8982e
Sous-chef state: ced5a368b5f410ec424e24fc6eceb7fddda0f36103535f4c3004160a179ee839

Generated by 🏁 PR Finisher · copilot · auto · ~24 AIC · ⌖ ~2 AIC · ⊞ 10.7K · ◷

@pelikhan
pelikhan merged commit 767a0d8 into main Nov 4, 2026
56 checks passed
@pelikhan
pelikhan deleted the copilot/suppress-rgs-018-false-positive branch November 4, 2026 07:07
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.0

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[static-analysis] Suppress RGS-018 false positive in daily-workflow-security-model

4 participants