Skip to content

feat: implement issue #274 — [Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml#277

Merged
don-petry merged 9 commits into
mainfrom
dev-lead/issue-274-20260613-0928
Jun 20, 2026
Merged

feat: implement issue #274 — [Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml#277
don-petry merged 9 commits into
mainfrom
dev-lead/issue-274-20260613-0928

Conversation

@don-petry

@don-petry don-petry commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Closes #274

Implemented by dev-lead agent. Please review.

Summary by CodeRabbit

  • Chores
    • Updated pull request review workflow configuration with enhanced trigger events and refined input parameters for improved automation management.

@don-petry don-petry requested a review from a team as a code owner June 13, 2026 09:35
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@coderabbitai

coderabbitai Bot commented Jun 13, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c8f7f377-530a-4d55-ab2c-580829024503

📥 Commits

Reviewing files that changed from the base of the PR and between ce4ddec and f2a6f84.

📒 Files selected for processing (1)
  • .github/workflows/pr-review.yml

📝 Walkthrough

Walkthrough

The .github/workflows/pr-review.yml workflow is updated to expand event triggers (adding check_suite, repository_dispatch), replace the pr_numbers dispatch input with pr_url, dry_run, and force_review, rename the job to review, pin the reusable workflow to a specific SHA on the pr-review/stable channel, and pass additional authentication secrets and control parameters.

Changes

PR Review Agent Workflow Reconfiguration

Layer / File(s) Summary
Event triggers and dispatch inputs
.github/workflows/pr-review.yml
Adds check_suite, pull_request, pull_request_review, and repository_dispatch triggers; removes issue_comment and pull_request_target; replaces pr_numbers dispatch input with pr_url, dry_run, and force_review boolean inputs.
Job entrypoint, wiring, and secrets
.github/workflows/pr-review.yml
Renames job from pr-review to review; changes reusable workflow target from pr-review-reusable.yml@main to pr-review.yml at a pinned SHA; adds agent_ref, pr_url, dry_run, force_review to with; expands secrets to include DON_PETRY_BOT_GH_PAT, DON_PETRY_BOT_GH_PAT_CLASSIC, and GH_PAT; removes concurrency block.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related issues

  • #274 [Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml: This PR updates the same pr-review.yml workflow that was reporting a 100% failure rate; the entrypoint pin and trigger/input changes directly address the workflow degradation tracked in that issue.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title references issue #274 and the file being modified (.github/workflows/pr-review.yml), aligning with the documented workflow failure critical issue that the PR addresses.
Linked Issues check ✅ Passed The PR updates the pr-review.yml workflow with a pinned reusable workflow reference and expanded configuration, directly addressing issue #274's critical 100% failure rate requiring workflow remediation.
Out of Scope Changes check ✅ Passed All changes are scoped to .github/workflows/pr-review.yml workflow configuration in response to the critical failure metrics reported in issue #274; no unrelated modifications detected.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev-lead/issue-274-20260613-0928

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

Copy link
Copy Markdown
Contributor

CI Failure: SonarCloud Code Analysis

Step: SonarCloud Quality Gate (external check at sonarcloud.io)
Root cause: Config error

The SonarCloud GitHub Actions scan completed successfully (both SonarCloud jobs show passing), but the external Quality Gate check failed. The PR only modifies .github/workflows/pr-review.yml, and the key change introducing risk is replacing explicit secret declarations with secrets: inherit. SonarCloud security rules flag this pattern in GitHub Actions workflows because it forwards all repository secrets to the called reusable workflow, expanding the blast radius beyond what is necessary — the original code forwarded only three specific named secrets.

Suggested fix: Replace secrets: inherit with explicit secret forwarding, passing only the secrets actually required by petry-projects/.github-private/.github/workflows/pr-review.yml@pr-review/stable (e.g., DON_PETRY_BOT_GH_PAT_CLASSIC and any others documented in that workflow).

View run logs

@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — review-changes (applied)

Changes committed and pushed.

@don-petry don-petry enabled auto-merge (squash) June 13, 2026 09:40
@don-petry don-petry disabled auto-merge June 13, 2026 09:41
@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — review-changes (no-changes)

No changes were needed for this PR.

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

Automated review — APPROVED ✓

Risk: MEDIUM
Reviewed commit: 0022356ae7018c35908a93139c798eb0e01e6665
Cascade: triage → audit (triage: haiku 4.5 → deep: opus 4.8 + duck: o4-mini → audit: fable 5)

Summary

TalkTerm PR #277 converts .github/workflows/pr-review.yml into a hardened thin caller for the org reusable pr-review.yml. I independently verified the SHA pin (29e5974 == .github-private HEAD == pr-review/stable channel), that all 4 inputs and 6 secrets exactly match the reusable's workflow_call interface, and that the caller is stricter than the documented pr-review-trigger.yml template (SHA pin vs mutable tag, explicit secret forwarding vs secrets: inherit, permissions:{} top-level + scoped job perms). No pull_request_target and no fork-secret exposure path; the broad-scope classic PAT is forwarded only in trusted trigger contexts behind a SHA-pinned reusable, so it is contained rather than exploitable. The earlier SonarCloud secrets:inherit finding is remediated in head 0022356, Quality Gate passes, and all CI gates are green; merge is BLOCKED only on the org-leads human review requirement.

Findings

  • INFO: Reusable workflow pinned by commit SHA (petry-projects/.github-private@29e5974 # pr-review/stable). Verified the SHA is the current HEAD of .github-private and the stable channel, and that the reusable is workflow_call-only. SHA-pinning is stricter than both the previous @main ref and the documented template's mutable @pr-review/stable tag.
  • INFO: Secret interface verified against the reusable's workflow_call.secrets block: all 6 forwarded secrets (CLAUDE_CODE_OAUTH_TOKEN, GOOGLE_API_KEY, COPILOT_GITHUB_TOKEN, DON_PETRY_BOT_GH_PAT, DON_PETRY_BOT_GH_PAT_CLASSIC, GH_PAT) are declared. Uses explicit named forwarding, not 'secrets: inherit' — remediating the earlier SonarCloud blast-radius finding.
  • INFO: Least-privilege permissions: top-level permissions:{} (none) with job-scoped contents:read, pull-requests:write, checks:read. No pull_request_target trigger and no checkout of PR head with secrets. pull_request fork PRs receive no secrets from GitHub; other triggers (check_suite, pull_request_review, repository_dispatch, workflow_dispatch) execute the default-branch workflow in trusted contexts, so a fork cannot alter the workflow or exfiltrate secrets.
  • MINOR: Forwards DON_PETRY_BOT_GH_PAT_CLASSIC, a broad-scope classic PAT used for gh pr review --approve (addPullRequestReview, unsupported by fine-grained PATs). Inherent to the documented design and contained: forwarded only via SHA-pinned reusable and only in non-fork/trusted trigger contexts. No new exposure introduced by this PR; flagged for awareness of the credential's power.
  • INFO: Caller removed its own concurrency block; safe because the pinned reusable provides a per-PR concurrency slot (aligned with recent #608/#609 work). New triggers (check_suite, pull_request_review, repository_dispatch pr-review-mention) and the added pull_request 'opened' type match/extend the documented thin-caller pattern. All status checks pass; merge BLOCKED only on org-leads human review (REVIEW_REQUIRED), not a CI failure.

Reviewed by the PR-review cascade (triage: haiku 4.5 → deep: opus 4.8 + duck: o4-mini → audit: fable 5). Reply if you need a human review.

@don-petry don-petry disabled auto-merge June 20, 2026 03:38
@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — review-changes (no-changes)

No changes were needed for this PR.

@don-petry don-petry enabled auto-merge (squash) June 20, 2026 03:39
@don-petry don-petry disabled auto-merge June 20, 2026 10:24
@don-petry

Copy link
Copy Markdown
Contributor Author

Dev-Lead — waiting on PR blockers (intent: review-changes)

PR: #277
No changes were committed, but the PR still has blocking checks or reviews (failing or cancelled checks, or changes-requested reviews). The retry cron will re-attempt automatically. Next attempt after: 2026-06-20T10:54:45Z

@don-petry

Copy link
Copy Markdown
Contributor Author

Note

@don-petry I reviewed this PR and no code changes were needed, but it still has blocking checks or reviews (failing or cancelled checks, or changes-requested reviews), so I cannot mark it done yet. I'll re-check automatically.
Next attempt after: 2026-06-20T10:54:45Z

@don-petry don-petry enabled auto-merge (squash) June 20, 2026 10:24
@sonarqubecloud

Copy link
Copy Markdown

@don-petry don-petry merged commit a142e43 into main Jun 20, 2026
18 of 20 checks passed
@don-petry don-petry deleted the dev-lead/issue-274-20260613-0928 branch June 20, 2026 10:28
@github-actions

Copy link
Copy Markdown
Contributor

CI Failure: SonarCloud Code Analysis

Step: Quality Gate
Root cause: Lint/style

SonarCloud flagged 12 new Security Hotspots introduced by this PR, causing the Quality Gate to fail. Security Hotspots are code patterns that SonarCloud considers potentially security-sensitive and requiring human review — they are not confirmed vulnerabilities. The new workflow changes (adding check_suite and repository_dispatch triggers, passing additional PAT secrets such as DON_PETRY_BOT_GH_PAT_CLASSIC and GH_PAT) likely triggered hotspot rules around secret handling and event-driven execution paths in GitHub Actions YAML.

Suggested fix: Navigate to the SonarCloud Security Hotspots page, review each of the 12 flagged hotspots, and mark them as Safe (if intentional and reviewed) or address any that represent a real risk — this will allow the Quality Gate to pass.

View analysis details

don-petry added a commit that referenced this pull request Jun 20, 2026
…— .github/workflows/pr-review.yml (#277)

* feat: implement issue #274 — [Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml

* chore: apply manual instructions [skip ci-relay]

---------

Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
don-petry added a commit that referenced this pull request Jun 20, 2026
…— .github/workflows/pr-review.yml (#277)

* feat: implement issue #274 — [Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml

* chore: apply manual instructions [skip ci-relay]

---------

Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
don-petry added a commit that referenced this pull request Jun 20, 2026
…— .github/workflows/pr-review.yml (#277)

* feat: implement issue #274 — [Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml

* chore: apply manual instructions [skip ci-relay]

---------

Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
don-petry added a commit that referenced this pull request Jun 20, 2026
…— .github/workflows/pr-review.yml (#277)

* feat: implement issue #274 — [Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml

* chore: apply manual instructions [skip ci-relay]

---------

Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
don-petry added a commit that referenced this pull request Jun 21, 2026
…— .github/workflows/pr-review.yml (#277)

* feat: implement issue #274 — [Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml

* chore: apply manual instructions [skip ci-relay]

---------

Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
don-petry added a commit that referenced this pull request Jun 21, 2026
…— .github/workflows/pr-review.yml (#277)

* feat: implement issue #274 — [Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml

* chore: apply manual instructions [skip ci-relay]

---------

Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
don-petry added a commit that referenced this pull request Jun 22, 2026
…— .github/workflows/pr-review.yml (#277)

* feat: implement issue #274 — [Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml

* chore: apply manual instructions [skip ci-relay]

---------

Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
don-petry added a commit that referenced this pull request Jun 22, 2026
…— .github/workflows/pr-review.yml (#277)

* feat: implement issue #274 — [Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml

* chore: apply manual instructions [skip ci-relay]

---------

Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
don-petry added a commit that referenced this pull request Jun 22, 2026
…— .github/workflows/pr-review.yml (#277)

* feat: implement issue #274 — [Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml

* chore: apply manual instructions [skip ci-relay]

---------

Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
don-petry added a commit that referenced this pull request Jun 23, 2026
…— .github/workflows/pr-review.yml (#277)

* feat: implement issue #274 — [Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml

* chore: apply manual instructions [skip ci-relay]

---------

Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
don-petry added a commit that referenced this pull request Jun 23, 2026
…— .github/workflows/pr-review.yml (#277)

* feat: implement issue #274 — [Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml

* chore: apply manual instructions [skip ci-relay]

---------

Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
don-petry added a commit that referenced this pull request Jun 23, 2026
…— .github/workflows/pr-review.yml (#277)

* feat: implement issue #274 — [Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml

* chore: apply manual instructions [skip ci-relay]

---------

Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
don-petry added a commit that referenced this pull request Jun 23, 2026
…— .github/workflows/pr-review.yml (#277)

* feat: implement issue #274 — [Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml

* chore: apply manual instructions [skip ci-relay]

---------

Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
don-petry added a commit that referenced this pull request Jun 23, 2026
…— .github/workflows/pr-review.yml (#277)

* feat: implement issue #274 — [Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml

* chore: apply manual instructions [skip ci-relay]

---------

Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
don-petry added a commit that referenced this pull request Jun 23, 2026
…— .github/workflows/pr-review.yml (#277)

* feat: implement issue #274 — [Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml

* chore: apply manual instructions [skip ci-relay]

---------

Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
don-petry added a commit that referenced this pull request Jun 23, 2026
…— .github/workflows/pr-review.yml (#277)

* feat: implement issue #274 — [Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml

* chore: apply manual instructions [skip ci-relay]

---------

Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
don-petry added a commit that referenced this pull request Jun 23, 2026
…— .github/workflows/pr-review.yml (#277)

* feat: implement issue #274 — [Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml

* chore: apply manual instructions [skip ci-relay]

---------

Co-authored-by: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

[Fleet Monitor] petry-projects/TalkTerm — .github/workflows/pr-review.yml

2 participants