Skip to main content

GA-L015: Deprecated command

Warning Best Practice

Why This Matters

The workflow uses a deprecated GitHub Actions command such as `set-output` or `save-state`. These commands were deprecated in October 2022 and will eventually stop working. Migrate to the new file-based approach using GITHUB_OUTPUT and GITHUB_STATE environment files.

How to Fix

Replace deprecated commands with environment file equivalents.

Before (incorrect)

run: echo "::set-output name=result::$value"

After (correct)

run: echo "result=$value" >> "$GITHUB_OUTPUT"

Rule Details

Rule Code
GA-L015
Severity
Warning
Category
Best Practice

Related Rules