GHA-SmellFix: Taking Action with Agentic LLMs for Detecting and Refactoring GitHub Actions Workflow Smells
Anderson Uch\^oa, Jhefferson Souza, Emanuel \'Avila, Gabriel Silva, Kevin Lira, Hui Sun, Nelson Ara\'ujo, Arthur Cordeiro,
Key points
From the paper's conclusion- We present GHA-SmellFix, an agentic LLM pipeline for detecting and refactoring GitHub Actions workflow smells.
Abstract
Continuous integration and continuous delivery workflows are key artifacts in software projects. In GitHub Actions, they encode build, test, release, deployment, and security automation in YAML. These workflows contain configuration smells affecting security, reliability, maintainability, or operational stability. Existing approaches are mostly rule-based, with rules hard to create and evolve, and typically report findings without fixes. Agentic LLM pipelines can combine contextual detection, transformation selection, and patch generation. Specialized agents can gate refactoring on positive detection verdicts, potentially avoiding unnecessary changes, but it is unclear whether decomposition improves effectiveness or mainly changes overhead. We present GHA-SmellFix, an agentic LLM pipeline for detecting and refactoring GitHub Actions workflow smells. We compare two designs: Joint, where one agent detects and refactors, and Decomposed, where separate agents detect and then refactor. We operationalize 19 smells from an existing catalog with explicit detection criteria, refactoring expectations, exclusion rules, and safety checks, and curate a ground truth of 1,710 (workflow, smell) pairs. We evaluate the designs with four LLMs (GPT-5.4-nano, Gemini 3.5 Flash, Claude Haiku 4.5, and DeepSeek V4 Flash) on 570 sampled pairs. Results show that decomposition does not universally improve patch quality; its main benefit is controlling when patch generation is attempted. It helps models prone to missing smells and can reduce overhead by gating patches. Once a smell is correctly detected, clean refactoring is generally effective, making detection the main end-to-end bottleneck. However, false positives can trigger unnecessary edits to execution-relevant constructs. Practical CI/CD agents thus need reliable abstention and construct-aware validation alongside patch generation.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Decision Models for Definition-Driven GitHub Actions Workflow Smell DetectionarXiv · 2026
- FLOWSTEP: A Framework for Learning to Predict GitHub Actions Workflow STEPsarXiv · 2026
- Missing Security-Fix Backporting for GitHub Actions WorkflowsarXiv · 2026
- CIVER: Causal Intervention Verification for Reliable Code ReviewarXiv · 2026
- DynaCI: Generating GitHub Actions Workflows via Dynamic AnalysisarXiv · 2026
- Catching Developers in the Flow: Low-Latency Agentic Program Repair at Google ScalearXiv · 2026