Skip to content

Publish PR audits as check runs instead of per-push comment floods (checks:write) #6

Open

Description

@alsotoes

Summary

PR audits are delivered as comments, not check runs, because the app does not declare checks:write. On every push to a PR the app posts one comment per audit dimension (Security Evidence, PR Risk Taxonomy, Reference Set Readiness, Hosted Promotion Readiness), each carrying a <!-- ecc-tools:pr-audit:... --> marker. For an active PR this means 4+ comments per push, which floods the timeline and pushes real review discussion down.

The app's own output acknowledges this: "Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission."

Current declared app permissions (public metadata): contents:write, issues:write, metadata:read, pull_requests:write — no checks:write.

Request

  1. Add checks:write to the app and publish each audit as a check run (per-dimension, or one aggregate check with per-dimension sections in the output).
  2. Only fall back to a PR comment when a check cannot be published or an audit fails, so the timeline stays clean on passing audits.
  3. If per-push comment duplication is intentional, consider collapsing all dimensions into a single editable comment (or updating in place) rather than adding four new comments per push.

Why it matters

  • Reviewers currently scroll past repeated bot comments to find human review.
  • Check runs integrate with branch protection and the merge box; comments do not.
  • A passing audit should be a quiet green check, not four notifications.

Notes

  • The permission change needs both the app owner to enable it and installation owners to approve the updated permission — filing this so the app-side half can be scheduled.
  • Happy to validate against a real repo (alsotoes/momo) once enabled.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions