DeAI Research
Source · elib (German Aerospace Center)

yaml2script (version 0.2.0)

2025Daniel Mohr

cid 87c925d92920fc83467026f7395b6cb91ea0954a4947f03605cf14773ffb5188 · original · via openalex

Title: yaml2script (version 0.2.0)
Authors: Daniel Mohr
Venue: elib (German Aerospace Center)
Year: 2025
Canonical: openalex:https://openalex.org/W7209575361
URL: https://openalex.org/W7209575361
Collector: openalex
OA: false

ABSTRACT
yaml2script is a Python script that extracts shell scripts from a GitLab CI/CD configuration file and allows users to test/analyze them with tools like shellcheck. It handles YAML anchors and GitLab CI's 'extends' functionality, enabling seamless extraction of scripts from complex configuration files. This tool is useful for automated testing, security audits, code quality improvement, and integration with CI/CD pipelines. It can be installed via pipx and supports various optional dependencies for checking code quality. The tool has several sub-commands, including `extract`, `check`, and `all`, and can be integrated with pre-commit for automated testing and analysis.