Skip to content
Evergreen Evergreen
Documentation

Deprecated GitHub Actions ::save-state command

Deprecated. The source gives no day. Replacement: $GITHUB_STATE. Source: GitHub Actions: Deprecating save-state and set-output commands.

Check a version:

evergreen check pkg:generic/github-actions/save-state

GitHub deprecated the ::save-state workflow command. Append to the GITHUB_STATE environment file instead.

Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>

   
Status Deprecated
Severity medium
Ecosystem github-actions
Component pkg:generic/github-actions/save-state
Affected versions vers:semver/*
Date from the source The source gives no day
Replacement $GITHUB_STATE
Evidence last seen 2026-11-05
Reviewed 2026-11-05 by arminazimi
Review due 2027-11-05 (365 days after the last review)
Rule ID github-actions.workflow-command.save-state

Sources

Migration

Constraints

  • Use environment files with a runner version supporting them. Multiline values require delimiter syntax.
  • Preserve the effective shell and quote expansion; never copy encoded command values directly.

Steps

  1. Append to GITHUB_STATE. Replace literal single-line echo commands with the corresponding environment-file append to “$GITHUB_STATE”. Migrate complex values manually.

Verification

  • git diff --check: Review the workflow patch before running it.

Detected by

The github-actions detector. See Detectors and Compatibility.

Same ecosystem

Data

This page is generated from registry/github-actions.json, rule github-actions.workflow-command.save-state, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.

Last updated