WorkflowBP carries security fixes across release branches
Missing Security-Fix Backporting for GitHub Actions Workflows · arXiv:2611.22519

In plain words
GitHub Actions workflows automate jobs such as building software. A security fix on a project's main branch may leave older release branches with the same weakness. This paper introduces WorkflowBP, a tool that carries a fix to those branches even when their workflow steps have changed.
On a shared sample of 12,000 files, WorkflowBP with Gemini produced patches that passed four checks more often than Gemini rewriting each file. Those checks are a static screen, not a run of every workflow.
The research
A workflow fix on a default branch can leave the same weakness in release branches that people still build from. The study's results suggest that adapting fixes to those branches can produce more patches that pass the stated checks than asking a language model to rewrite each whole file.
WorkflowBP turns a workflow security fix into structural edits, applies them to divergent release branches, and checks each patch before accepting it.
The study scanned workflow changes for fixes and checked release branches against default-branch fixes. Of 474,490 audited branches, 224,392 (47.3%) still had a weakness already fixed on the corresponding default branch; another 171,191 lacked the workflow file and are included in the denominator.
On 12,000 sampled files, WorkflowBP with Gemini passed the four checks for 67.9%, versus 49.5% for whole-file Gemini rewrites. That supports structural patching under static checks, not runtime success for every workflow.
Acceptance relies on static checks that stand in for running a workflow. Only 17 accepted patches that the researchers could execute were run, and all 17 completed successfully; the other patched workflows were not run.
What the evidence shows
- A fix can stop at one branch
WorkflowBP is a method for transferring security fixes between GitHub Actions branches. The problem is that a fix on a project's default branch does not update its divergent release branches, which downstream users may still build from.
The study measures whether that gap appears across public workflow histories and then tests whether an automated tool can carry fixes across changed workflows.
- The gap is broad and slow
The history check separates later branch fixes from same-day removals that may have come through automatic merges. Only about a quarter of already-fixed branches qualified as plausible deliberate backports, and those fixes typically came months after the default-branch fix.
- Existing methods leave files unfixed
The comparison shows that even whole-file rewriting left about half of the sampled files without a patch passing all four checks. Using the same files and checks gives WorkflowBP a common baseline for judging whether its structural edits help.
- Structural edits improve acceptance
WorkflowBP represents the fix as structural edits, applies them to each branch, and accepts a patch only after four independent checks. With Gemini proposing edits for difficult cases, it produced accepted patches for 67.9% of the same files, compared with 49.5% for Gemini rewriting the whole file.
Because the model proposes the edit plan while the engine applies and checks it, this result supports the method under the study's static acceptance criteria.
- Project responses add limited evidence
Maintainer confirmation or fixes show that some generated patches addressed issues project teams recognized, but this evidence covers only a subset of submitted reports.
The runtime check also found successful completion for the workflows that could be run, while most patched workflows were not executed.
Deep
- Original paper authors
- Chengyan Ma, Jieke Shi, Ruidong Han, Weifeng Sun, Yuqing Niu
- Submitted to arXiv
- License
- CC BY 4.0