Standardize Static Analysis Workflow Across Repositories#2
Merged
eapache-opslevel merged 1 commit intomainfrom Apr 21, 2026
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implemented a comprehensive automation system for standardizing static analysis workflows across organization repositories. The solution includes Python scripts that automatically create and manage
.github/workflows/static-analysis.yamlfiles using a shared workflow template.Key Implementation
Created a main script that detects each repository's default branch (main, master, develop, etc.) and generates a standardized workflow file that references the shared OpsLevel static analysis template. The implementation intelligently compares existing workflow files against the standard template and skips repositories where files already match, ensuring idempotent behavior. Added comprehensive YAML validation to prevent syntax errors before file creation.
Additional Components
Developed a batch processing script for handling multiple repositories with support for parallel execution, improving efficiency for large-scale operations. Created comprehensive test suites including unit tests and integration tests that verify branch detection, file creation, idempotency, and YAML validation. Included detailed documentation with quick-start guides, usage examples, and troubleshooting information.
Features Delivered