➡️ This is a fork of YAML with Script adapted to work for GitHub Actions instead of GitLab CI/CD
🚀 Extend YAML files with embedded shell scripts and linting – the perfect solution for seamless automation and debugging directly within VS Code!
This extension is specifically designed for GitHub Actions, making it easier to work with workflow files. Automate, debug, and test your CI pipelines without the need for constant commits and pushes.
- CodeLens Integration: Add interactive buttons to YAML files to execute
shell scripts (
run) with a single click. - ShellCheck Support: Integrated linting to detect and fix issues in your shell scripts.
- Real-time YAML Analysis: Provides instant feedback on YAML file syntax errors and warnings directly in the VS Code Problems panel.
- Optimized for GitHub Actions: Simplifies working with GitHub workflows,
including
runblocks and composite actions. - Customizable Settings: Configure severity levels, and other options via the extension settings.
run blocks are getting highlighted, checked
with shellcheck and are executable
with a button click on ▶️ Run Script.
- Open a github workflow file in VS Code.
- Click the CodeLens button (
▶️ Run Script) above your script. - The script is executed in a new terminal.
When errors are detected in your shell script, they are highlighted directly in VS Code:
- Severity Levels:
- Errors
- Warnings
- Info
- Style
Quickly check issues with direct links to the ShellCheck documentation. Unfortunately quick actions are not implemented, but might be in the future.
Customize the extension via VS Code settings:
| Setting | Description |
|---|---|
actions-shell-scripts.enabled |
Enable or disable the extension. |
actions-shell-scripts.enableRunButton |
Enable or disable the ▶️ Run Script CodeLens button. |
actions-shell-scripts.baseScript |
A global script to be executed before the YAML script is executed with a click on ▶️ Run Script (e.g., source ~/.env or source ~/.actions-shell-scripts-base.sh). |
actions-shell-scripts.severity |
Configure severity levels for ShellCheck (error, warning, info, style). |
actions-shell-scripts.shellcheckFolder |
This is the path to the folder that includes 'shellcheck', e.g. (/opt/homebrew/bin will lead to /opt/homebrew/bin/shellcheck --version) |
- ShellCheck: Ensure ShellCheck is installed and available in your
PATH. Install ShellCheck.
- The first line of a script is not properly highlighted. See here.
This software is released under the MIT License (see License).


