You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gh aw compile command generates a lock file where the activation job requests permissions that are broader than what the source workflow declares or needs. Specifically, the compiled workflow includes discussions: write and pull-requests: write even when the source workflow only operates on issues.
Reproduction
Create a workflow that only needs issue permissions:
The compiled lock file should follow the principle of least privilege and only request permissions that are actually needed by the workflow. For an issue-triage workflow, discussions: write and pull-requests: write are unnecessary and increase blast radius if the workflow or its dependencies are compromised.
Actual behavior
The compiler injects a fixed set of broad write permissions into the activation job regardless of the workflow's declared scope.
Activity