StepSecurity Adds Control to Audit GitHub Fork PR Workflow Approval Policies

· Original article ↗

Summary

StepSecurity announced an hourly control that identifies public GitHub repositories and organizations using the least restrictive approval policy for fork pull request workflows, and recommends requiring approval for all external contributors.

Key points

  • The control checks organization-level policies and the effective policies of public, non-archived repositories, including repositories with their own settings.
  • It flags only the least restrictive approval option; findings show the scope, current policy, scan time, and remediation link.
  • The article says fork pull request workflows can run edited code before review under the least restrictive policy, even though GitHub limits secrets and GITHUB_TOKEN permissions for those workflows.
  • Self-hosted runners may expose credentials or internal systems to code that runs on them; the article recommends requiring approval for all external contributors.
  • The approval policy does not cover pull_request_target workflows, which the article says run in the base branch context; StepSecurity offers a separate control for Pwn Request vulnerabilities.
  • The control reports policies but does not change settings, approve workflow runs, or block pull requests; it is available to StepSecurity Enterprise customers.

Article Details

Event Type
Announcement of a StepSecurity control for auditing GitHub fork pull request workflow approval policies
Impact
The control identifies public repositories and organization policies that allow workflows from fork pull requests to run without approval. On self-hosted runners, such code may reach credentials and internal systems. The article cites the 2023 PyTorch incident, in which researchers reportedly used merged contributions to run workflows on self-hosted runners, gain root access, obtain write-access tokens, and reach cloud credentials for release artifacts. The control reports policies but does not change settings or block workflow runs.

Vendors

Products

Related Articles