Skip to content

[deep-report] Audit discussions:write permission grants (189) vs actual create_discussion usage (91) #53871

Description

@github-actions

Description

The Lockfile Statistics Analysis found 189 workflows hold job-level discussions: write permission, but only 91 workflows actually call create_discussion as a safe output. This is a ~2x gap between granted and used permission for this specific scope, worth a least-privilege spot-check.

Expected Impact

Reduces unnecessary write-permission surface area across ~98 workflows that may not need discussions: write, tightening the fleet's security posture.

Suggested Agent

New Agent — cross-reference each of the 189 workflows' actual safe-outputs config against its granted discussions: write permission and file a follow-up removing the grant where genuinely unused.

Estimated Effort

Medium (1-4 hours)

Data Source

DeepReport Intelligence Briefing analysis of Lockfile Statistics Analysis (discussion #53820, 2026-08-18).

Generated by 🔬 Deep Report · agent · 108 AIC · ⌖ 8.65 AIC · ⊞ 11.9K ·

  • expires on Aug 20, 2026, 4:35 PM UTC-08:00

Activity

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions