Skip to content

ci: let PR Hygiene post its verdicts to the dashboard - #1064

Merged
shumkov merged 1 commit into
developfrom
shumkov/pr-hygiene-id-token-develop
Nov 21, 2026
Merged

shumkov merged 1 commit into
developfrom
shumkov/pr-hygiene-id-token-develop

Conversation

@shumkov

@shumkov shumkov commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Grants id-token: write to the PR Hygiene caller workflow. That's the only change.

Why: the shared workflow (dashpay/stale_prs_are_bad's pr-review-reusable.yml@master) now posts each run's verdicts to the dashboard at https://pr-hygiene.services.dash.org. The dashboard then shows the new state within about a minute instead of after its next periodic refresh. The post is authenticated with the job's GitHub OIDC token, and a job can mint one only when its caller grants id-token: write.

Effect on the gate: none. The post runs after every status is written, never fails the job, and without this permission only logs a warning, which is what happens today. The token gives no access to GitHub. Note that id-token: write lets any step of this job mint an OIDC token for any audience. The only code in the job is the shared PR Hygiene workflow from dashpay/stale_prs_are_bad master, a protected branch, and it asks only for the dashboard's audience. No pull request code runs in it. A cloud role that trusts this repository's OIDC subject with a wildcard would be reachable by that code, so such roles should pin the exact workflow or environment.

The caller template in pr_review/rollout.py already includes this line, so the generated caller and this file agree.

🤖 Generated with Claude Code

The shared PR Hygiene workflow now posts each run's verdicts to the
dashboard service at pr-hygiene.services.dash.org, signed with the job's
GitHub OIDC token. A job can mint that token only when its caller grants
id-token: write. Nothing else changes: the review gate runs as before, and
without the token the post only warns.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The PR adds id-token: write to the permissions for the pull request review policy workflow.

Changes: Review policy workflow

Layer / File(s) Summary
Workflow permission
.github/workflows/pr-review-policy.yml
The workflow adds id-token: write to its permissions.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Other

Suggested reviewers: thepastaclaw

Merge Risk: Minimal · up to 8d6ef

This grants the PR Hygiene workflow permission to request an OIDC token so it can post verdicts to the dashboard. The review gate is unaffected, and nothing actionable blocks merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "ci: let PR Hygiene post its verdicts to the dashboard" matches the change. The workflow adds the id-token: write permission, which lets the PR Hygiene caller post run verdicts to the dashbo…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "ci: let PR Hygiene post its verdicts to the dashboard" matches the change. The workflow adds the id-token: write permission, which lets the PR Hygiene caller post run verdicts to the dashboard using a GitHub OIDC token. The title is specific and describes the primary change from the developer's perspective.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 913e735d-70b3-43e2-bd92-eb6ade24d112
Commits

Reviewing files that changed from the base of the PR and between 2cfc1ce and 8d6ef7f.

Files selected for processing: 1

  • .github/workflows/pr-review-policy.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@github-actions

github-actions Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Waiting for bot review — coderabbitai ✓ · thepastaclaw not yet. Wait for the missing reviews, or a writer can post /skip-bots to proceed without them; blocking findings still need addressing.
Full checklist in the description.

@github-actions github-actions Bot added the waiting-bots Waiting for the review bots to report on this head label Nov 21, 2026
@thepastaclaw

Copy link
Copy Markdown
Contributor

🕓 Review not started yet because the new head is waiting for the 30-minute push debounce.

  • Request normal review — click when the PR is ready for review.
  • Request priority review — click to move this review to the front of the queue.

Commit 8d6ef7f. Normal review starts when eligible; priority review starts as soon as a slot is available.

@shumkov
shumkov merged commit bf5297f into develop Nov 21, 2026
9 of 11 checks passed
@shumkov
shumkov deleted the shumkov/pr-hygiene-id-token-develop branch November 21, 2026 15:12
PastaPastaPasta added a commit that referenced this pull request Nov 21, 2026
Brings develop up to bf5297f: #1064, one permission line of the PR
review policy workflow. No source file changes, so the golden corpus
and its pin stay as they are.

Part of #1052.

Lignin-Tasks: SYNC
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-bots Waiting for the review bots to report on this head

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants