arXiv:2609.00676cs.CRSep 2026

Manuscript Offprint

arXiv:2609.00676

Automating Static Code Analysis Through CI/CD Pipeline Integration

Zachary Wadhams, Ann Marie Reinhold, Clemente Izurieta

Zachary Wadhams

Gianforte School of Computing

Montana State University

Bozeman, Montana, USA

zacharywadhams@montana.edu

Ann Marie Reinhold

Gianforte School of Computing

Montana State University

Bozeman, Montana, USA

reinhold@montana.edu

Clemente Izurieta

Gianforte School of Computing

Montana State University

Pacific Northwest National Laboratory

Idaho National Laboratory

Bozeman, Montana, USA

clemente.izurieta@montana.edu

Abstract—In the contemporary landscape of software development, securing sensitive data is paramount to safeguarding organizational reputation, preventing financial losses, and protecting individuals from identity theft. This paper addresses the pervasive challenge of identifying and rectifying security vulnerabilities early in the development process, emphasizing the role of Static Application Security Testing (SAST) tools. While SAST tools play a crucial role in detecting vulnerabilities, widespread adoption has been hindered by usability issues, including high false positive rates and a lack of native pipeline support. This paper proposes a novel, generalized, and automated process for aggregating SAST tool outputs and integrating them into developers' familiar issue-tracking software. The process streamlines the identification and communication of security vulnerabilities during the development lifecycle, facilitating more efficient remediation efforts. We demonstrate the successful implementation of the proposed process with the SonarQube SAST tool in a GitLab-based development environment. Developers were positive about the structured implementation, real-time feedback, and proactive vulnerability management. However, despite some challenges such as a potential learning curve and trade-offs between secure coding and workflow disruption, the overall positive impact on security awareness and responsiveness suggests that the proposed process holds promise in enhancing the security posture of software development practices.

Index Terms—Static Analysis, Static Application Security Testing, Software Security, Software Vulnerabilities, Mining Software Repositories

I. INTRODUCTION

Now, more than ever, software applications must make a concerted effort to effectively secure the data they store. A single breach of security can wreak havoc on the reputation of the organization, trigger massive financial loss, and even disrupt individuals' lives through identity theft or other means. Many instances of security breaches can be traced back to security vulnerabilities [7]. A security vulnerability is a weakness or flaw in a software application's source code or design that can be exploited by malicious actors to compromise the security of the system or the data it processes. It is vital that vulnerabilities are identified and corrected as early as possible in the development process. A key tool that development teams can use to identify vulnerabilities is Static Application Security Testing (SAST), or Static Code Analysis.

These tools aim to help ensure the security, reliability, and compliance of software applications. SAST tools work by analyzing the source code during the development phase, enabling early detection of security vulnerabilities. By identifying security flaws at an early stage, developers can address them promptly and minimize the risk of such vulnerabilities making their way into the final product.

SAST tools not only focus on security vulnerabilities but also help improve code quality by identifying design flaws [1] [2]. By detecting and addressing these issues early in the development cycle, teams can enhance the overall quality and maintainability of the codebase. Using these tools, development teams can gain insights into common security pitfalls and improve their understanding of secure coding principles. SAST tools simultaneously serve as educational resources, helping to foster a security-conscious culture among developers who utilize these tools and empowering them to produce code that is more secure and reliable [5].

A small number of such tools are specifically designed to be implemented within Continuous Integration/Continuous Delivery(CI/CD) pipelines on major Git-based repository hosting services. CI/CD pipeline integration allows these tools to run on each new code addition, creating a record (typically stored within the tool GUI or as a .json file) of which changes introduced vulnerabilities or design flaws. The near-immediate feedback given allows for faster remediation of critical vulnerabilities while the historical record can be instrumental in ensuring compliance with a variety of security standards and best practices [11] [12]. However, the vast majority of tools have little to no support for automation or pipeline integration.

While manual code reviews and standalone static analyses are essential for identifying some design flaws and guiding a project's direction, the complexity, and size of modern

© 2024 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.

This is the author's accepted version of: Z. Wadhams, A. M. Reinhold, and C. Izurieta, "Automating Static Code Analysis Through CI/CD Pipeline Integration," 2024 IEEE International Conference on Software Analysis, Evolution and Reengineering (SANER), Rovaniemi, Finland, 2024, pp. 119–125. doi: https://doi.org/10.1145/3691621.3694947.

software applications make it unfeasible to manually review an entire codebase [9]. This necessity calls for automation, which is provided by pipeline integration.

Despite these apparent benefits, many development teams have not deployed SAST tools. Reasons for this vary but many agree that there are still widespread usability issues that hinder their adoption and consistent use. Most of these reasons are commonly identified as high rates of false positives, unhelpful warning messages, lack of fix suggestions, and insufficient native pipeline support [3]. Developers often delegate security-related concerns to colleagues within their organization or, in some cases, they may lack access to these reports due to security configurations [8] [4]. As those possessing the most profound understanding of the code, developers often overlook security issues, which can lead to the “out of sight, out of mind” problem [8] [5].

Instead of merely investigating this issue, we have chosen to design a solution that involves presenting SAST reports to developers in a familiar and consistent manner using automated methods. While many have touched upon this issue, we have identified no papers that discuss a generalized process applicable to all static analysis tools. By offering a standardized process that is easy to integrate and demonstrating the tangible benefits of doing so, we aspire to promote the widespread adoption and integration of static analysis tools within the software development community. This, in turn, enhances software privacy and security across a broad spectrum of domains and applications.

Our first key contribution is a generalized and automated process for aggregating SAST tool outputs and integrating them into developers' familiar issue-tracking software. This process streamlines the identification and communication of security vulnerabilities during the development lifecycle, facilitating more efficient remediation efforts.

In addition, we provide a detailed examination of a practical implementation of the proposed process. By illustrating its application in a real-world scenario, we offer insights into the feasibility and effectiveness of the process. The practical implementation serves as a valuable case study, shedding light on the challenges encountered and the practical considerations that arise when implementing such a process within software development teams.

Our work contributes to the security vulnerability management field by thoroughly exploring the potential benefits and drawbacks of the explored process. By addressing advantages such as improved collaboration between security and development teams, which in many cases are separated by technology and/or organizational constraints, our aids in understanding the implications and trade-offs associated with adopting our process.

Importantly, these contributions hold direct relevance to the Mining Software Repositories (MSR) community. The proposed process aligns with the objectives of MSR by leveraging data from software repositories, issue-tracking systems, and security testing tools to better inform software developers of potential security vulnerabilities and foster proactive measures for secure software development practices, ergo the ability to mine software repositories to make information available to potentially separate engineering groups (i.e., security and development) in a CI/CD environment is critical. The insights gained from this research can inform and enhance the broader understanding of how security practices intersect with the larger software development ecosystem, thereby contributing to the ongoing advancements in the MSR field.

This paper is structured as follows: Section II explains the motivation for our work in the field of static analysis. Section III discusses related work and its impact on our research. Section IV describes our process and its core components in detail. Section V presents a practical example of an implementation of our process. Section VI provides a discussion on the greater consequences of our work. Section VII addresses potential threats to the validity of our work and our attempts to mitigate them. Section VIII concludes the paper and outlines our plans for future work on refining and extending the proposed SAST tool integration process.

References (11)