StepSecurity Adds Control to Audit GitHub Fork PR Workflow Approval Policies

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
GitHubEvery public repository on GitHub has a setting that decides who can run workflows from a fork without asking first. Set it to the least restrictive option, and any established GitHub account can fork your repository,StepSecurityToday we are adding a new control to StepSecurity that finds this setting across your GitHub organization and every public repository in it: Fork pull request workflows should require approval. It is rated Critical, it
Products
Harden-Runnerpull requests, pull_request_target workflows and compromised dependencies all still execute code. Harden-Runner monitors network calls, file changes and processes on self-hosted runners as well as GitHub-hostedPyTorchPyTorch shows why that matters. In 2023, researchers got a small typo fix merged into PyTorch, and their later pull requests then ran workflows on PyTorch's self-hosted runners with no further approval. From there they
