Skip to main content

GA-L017: Shell script error

Warning Actionlint

Browser Limitation

This rule requires ShellCheck which is not available in the browser WASM build. To detect these issues, run actionlint via CLI: actionlint your-workflow.yml

Why This Matters

A shell script in a `run:` block contains a potential error detected by shellcheck analysis. This rule requires shellcheck, which is not available in the browser WASM build. Violations are only reported when running actionlint via CLI.

How to Fix

Fix the shell script issue identified by shellcheck.

Before (incorrect)

run: |
  echo $UNQUOTED_VAR
  cd $DIR && rm *

After (correct)

run: |
  echo "$UNQUOTED_VAR"
  cd "$DIR" && rm ./*

Rule Details

Rule Code
GA-L017
Severity
Warning
Category
Actionlint

Related Rules