Skip to main content

GA-L018: Python script error

Warning Actionlint

Browser Limitation

This rule requires pyflakes 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 Python script in a `run:` block (with `shell: python`) contains a potential error detected by pyflakes analysis. This rule requires pyflakes, which is not available in the browser WASM build. Violations are only reported when running actionlint via CLI.

How to Fix

Fix the Python script issue identified by pyflakes.

Before (incorrect)

run: |
  import os
  import sys
  print(undefined_var)

After (correct)

run: |
  import os
  print(os.getcwd())

Rule Details

Rule Code
GA-L018
Severity
Warning
Category
Actionlint

Related Rules